【发布时间】:2014-08-19 17:23:06
【问题描述】:
我试图为我的选择菜单选项提供一个字体系列,但它不起作用。
我正在尝试使用下面的这段代码,它似乎适用于谷歌浏览器,但在 Internet Explorer 上我有不同的字体系列。
您知道如何将字体系列设置为适用于 chrome 和 Internet Explorer 的选项吗??
这是我的html:
<div class="select_teams">
<select name="teams">
<option class="option">Select your team:</option>
<option class="option" value="1">ACM</option>
<option class="option" value="2">PSG</option>
<option class="option" value="2">RM</option>
</select>
</div>
这是我的 CSS:
.select_teams select{min-width:250px; padding:10px; border:3px solid #CCC; font-size:18px;}
.select_teams .option{transition:none; font-family:'bariol_regularregular';}
在 chrome 和 mozilla 上我得到了这个:
在 Internet Explorer 上我得到了这个:
【问题讨论】: