Change css font-family for separate options in select tag

后端 未结 7 1982
傲寒
傲寒 2020-12-02 00:05

I don\'t know if this is possible, and if not, if someone can throw out optional ideas, but I\'m attempting to display a drop down of different fonts (specifically, font\'s

相关标签:
7条回答
  • 2020-12-02 00:39

    You can simply use like this

    <select id='lstFonts' class='form-control'>
        <option style="font-family:Arial" value="Arial">Arial</option>
        <option style="font-family:Verdana" value="Verdana">Arial</option>
    </select>
    
    0 讨论(0)
提交回复
热议问题