如何更改<select> </select>的字体

时间:2013-07-27 10:10:09

标签: html css fonts

我正在尝试从谷歌获取我的某个项目的字体。

字体工作正常,但<select>字体不会出现。

知道如何在jsf?

中为select,option选择字体

我尝试了风格,通过制作课程......但没有任何工作。

enter image description here

即使我选择{font-family:'fontName'}

,我也会在源代码中找到它
<select name="j_idt205" size="1">
    <option value="Any" selected="selected">Any</option>
    <option value="Muslim">Muslim</option>
    <option value="Christian">Christian</option>
    <option value="Others">Others</option>
</select>

主要问题

在FF中,它是正确的,但在Chrome中,是其默认的Chrome字体。

知道为什么会这样吗?

经过进一步调查,我发现只有MAC Chrome和Safari才会发生这种情况。 这只会让我发疯!

1 个答案:

答案 0 :(得分:2)

在select

上实现font-family

http://jsfiddle.net/sTPFY/

 select {font-family:fontname}
相关问题