Jquery SelectBoxIt:粗体选项文本?

时间:2017-01-11 15:20:04

标签: jquery

是否有人尝试使用this script以粗体显示一些选项文字?

我想要这样的东西。 这可能吗?

enter image description here

1 个答案:

答案 0 :(得分:-1)

是的。 只需将 font-weight:bold 样式应用于<option>

即可
<select>
  <option disabled selected>Select one</option>
  <option style="font-weight:bold">Bolded</option>
  <option>Not bolded</option>
</select>

使用SelectBoxIt:http://gregfranko.com/jquery.selectBoxIt.js/index.html#HTMLOptionSupport

相关问题