How to style a select tag's option element?

前端 未结 6 1494
渐次进展
渐次进展 2020-11-22 11:03

I\'m trying to set the style of an option in a select dropdown menu in Google Chrome. It works in all browsers except IE9 and Chrome.

6条回答
  •  孤街浪徒
    2020-11-22 11:09

    Unfortunately, WebKit browsers do not support styling of tags yet, except for color and background-color.

    The most widely used cross browser solution is to use

      /
    • and style them using CSS. Frameworks like Bootstrap do this well.

提交回复
热议问题