CSS Font-Family Support Dropped for <SELECT>

2019-04-20 10:19发布

问题:

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.

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

http://jsfiddle.net/uqt64rfr/

回答1:

-moz-font-family:"Lucida Console", Monaco, monospace;