搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

firefox does not show font-awesome unicode codes in html select option but it does for paragraphs or in other html elements

  • 2 个回答
  • 1 人有此问题
  • 6 次查看
  • 最后回复者为 TyDraniu

more options

I have checked that firefox is able to fetch font files. If I add a unicode character in <p> tag then it shows but it does not work in <option></option> , but it does in chrome or other browsers.

I have checked that firefox is able to fetch font files. If I add a unicode character in &lt;p> tag then it shows but it does not work in &lt;option&gt;&lt;/option&gt; , but it does in chrome or other browsers.

由cor-el于修改

所有回复 (2)

more options

u can try this in your local file please


  <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css">
  <style type="text/css">
   select, select option {
     font-family: 'FontAwesome';
 }
  </style>
</head>
<body style="font-family: 'FontAwesome';">
<select name="allSort">
 <option value="price-up">Price Low to High &#xf175;</option>
 <option value="price-down">Price High to Low &#xf176;</option>
 <option value="name-down">Name A to Z &#xf175;</option>
 <option value="name-up">Name Z to A &#xf176;</option>
</select>

<p>&#xf175;</p>

由cor-el于修改

more options

Yes, there are a lot of issues with <select> element.

They're tracked in this meta: https://bugzilla.mozilla.org/show_bug.cgi?id=1154677

I'm not sure if yours is already mentioned, you could create a new bug and attach it to the list in 1154677.