更改HTML下拉选项字体大小 [英] Change HTML dropdown option font size
本文介绍了更改HTML下拉选项字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个简单的HTML下拉菜单:
I have this simple HTML dropdown menu:
<select>
<option style="font-size:50px;">Test</option>
</select>
我找不到增加选项字体大小的方法.由于某些原因,font-size属性被忽略.这是错误还是什么?
I can't find a way to increase the font size of the option. The font-size property is being ignored for some reason. Is this a bug or what?
谢谢
推荐答案
您应使用以下命令关闭默认的操作系统样式:-webkit-appearance: none
;
You should turn off the default OS styling with: -webkit-appearance: none
;
这篇关于更改HTML下拉选项字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文