css select dropdown bold on some

后端 未结 5 1080
迷失自我
迷失自我 2021-02-13 05:30

On a select dropdown, I need to make certain items \'strong/bold\'.

How can I do this?

Example of what I ideally require:

5条回答
  •  借酒劲吻你
    2021-02-13 06:14

    You actually can't.

    The closest thing (you can't choose a bold item)

     
        
        
      
      
        
        
      
    

    Which gives you this: enter image description here

    http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_optgroup

    You can also build one of your own but it won't be input an input tag (you should use inputs of your own).

提交回复
热议问题