Internet Explorer:下拉不显示选项字体系列 [英] Internet Explorer: drop down does not display option font family

查看:186
本文介绍了Internet Explorer:下拉不显示选项字体系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

#select-arial { font-family: Arial; }
#select-verdana { font-family: Verdana; }
#select-geneva { font-family: Geneva; }
#select-sans-serif { font-family: Sans-Serif; }
#select-courier { font-family: Courier; }
#select-monospace { font-family: Monospace; }
#select-georgia { font-family: Georgia; }

    <select name="font_select">
        <option id="select-arial" value="Arial">Arial</option>
        <option id="select-verdana" value="Verdana">Verdana</option>
        <option id="select-geneva" value="Geneva">Geneva</option>
        <option id="select-sans-serif" value="Sans-Serif">Sans-Serif</option>
        <option id="select-courier" value="Courier">Courier</option>
        <option id="select-monospace" value="Monospace">Monospace</option>
        <option id="select-georgia" value="Georgia">Georgia</option>
    </select>

Internet Explorer浏览器不显示不同的字体,而Firefox和Safari则不会显示。有没有人知道工作?

Internet explorer does not display different fonts, while Firefox and safari does. Does any know a work around?

谢谢

推荐答案

某些表单元素无法设置在IE中 - 我看到的唯一选择是通过DHTML / JS创建自己的控件

Some form elements can't be styled in IE - the only option I see is to create your own controls, via DHTML / JS

这样的一个例子: http://v2.easy-designs.net/articles/replaceSelect/

这篇关于Internet Explorer:下拉不显示选项字体系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆