简体   繁体   English

选择字体为Verdana且字体大小未对齐的元素

[英]Select element with font family Verdana and font size misaligns the option selected

When a verdana font-family is used as font style for a select element, it works fine in Chrome and IE. 当将verdana字体系列用作select元素的字体样式时,它在Chrome和IE中可以正常工作。 But it behaves differently in Firefox, with the selected option overlapping the dropdown arrow. 但是它在Firefox中的行为有所不同,所选选项与下拉箭头重叠。 Can anyone please suggest a solution? 有人可以提出解决方案吗?

http://jsbin.com/onixuz/1/edit http://jsbin.com/onixuz/1/edit

I just moved your inline stlye to a style sheet: 我只是将您的内联样式添加到样式表中:

select {font: 12px verdana;}

and it seems to work for me. 似乎对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM