html - Styling part of the OPTION text -


I have a SELECT list with many option elements Here's my inexperienced approach to styling part of the option text:

  & lt; Select name = "color" & gt; & Lt; Option value = "0" & ​​gt; Red & lt; Span style = "font-weight: bold;" & Gt; Slow & lt; / Span & gt; & Lt; / Options & gt; & Lt; Option value = "1" & gt; Blue & lieutenant; Duration style = "font-weight: bold;" & Gt; Slow & lt; / Span & gt; & Lt; / Options & gt; & Lt; Option value = "2" & gt; Green & lt; Span style = "font-weight: bold;" & Gt; Slow & lt; / Span & gt; & Lt; / Options & gt; & Lt; / Select & gt;  

This does not work: the browser does not like a span element inside the element element

whether the style of part of the text styling Is there any other way to do it?

no The option s is styled in the original form of the platform, and the style of only one does not work. (This will usually not be a particularly good idea.)


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -