CSS Font-Family Support Dropped for <SELECT>

2019-04-20 10:00发布

The following CSS used to work in all browsers that I have tested. It even has an option selector to handle Firefox.

select,
option {
  font-family: "Lucida Console", Monaco, monospace;
}

The newest versions of Firefox no longer properly apply font family styles. Former versions of Firefox, and every other major browser I've tested, fully apply the font family settings both to the select and to the items in the dropdown - now, it only gets applied to the select box itself, but NOT the dropdown.

Select box with partial support for the font (here shown in Impact). Note the items are not showing the proper font.

Does Firefox still support font-family changes to dropdowns? If so, how?

http://jsfiddle.net/uqt64rfr/

1条回答
叛逆
2楼-- · 2019-04-20 10:46
-moz-font-family:"Lucida Console", Monaco, monospace;
查看更多
登录 后发表回答