Select box truncating text when body font size changed via javascript on document ready in IE 9

后端 未结 5 752
余生分开走
余生分开走 2021-01-02 02:59

IE 9 is behaving quite strangely for me. I\'ve got a page font-size changing control that saves the users setting and then in the document ready sets the body font-size to

5条回答
  •  轮回少年
    2021-01-02 03:32

    Seems IE9 issue. As a workaround, you can refresh the font-size css of select.

    if(jQuery.browser.msie)
     $("select").css("font-size", "1em")
    

    Example. http://jsfiddle.net/z6Paz/16/

提交回复
热议问题