【问题标题】:Internet Explorer: drop down does not display option font familyInternet Explorer:下拉不显示选项字体系列
【发布时间】:2010-12-28 15:36:30
【问题描述】:
#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 会。有人知道解决方法吗?

谢谢

【问题讨论】:

    标签: css internet-explorer drop-down-menu font-family


    【解决方案1】:

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

    类似这样的:http://v2.easy-designs.net/articles/replaceSelect/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-04
      • 1970-01-01
      • 2014-12-01
      • 1970-01-01
      • 2011-10-03
      • 2017-12-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多