开发者

Internet Explorer: drop down does not display option font family

开发者 https://www.devze.com 2022-12-14 17:27 出处:网络
#select-arial { font-family: Arial; } #select-verdana { font-family: Verdana; } #select-geneva { font-family: Geneva; }
#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</op开发者_JS百科tion>
        <option id="select-monospace" value="Monospace">Monospace</option>
        <option id="select-georgia" value="Georgia">Georgia</option>
    </select>

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

Thank you


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

Something like this: http://v2.easy-designs.net/articles/replaceSelect/

0

精彩评论

暂无评论...
验证码 换一张
取 消