Setting the height of a SELECT in IE

前端 未结 14 1971
忘掉有多难
忘掉有多难 2020-12-03 04:24

IE seems to ignore the height set in CSS when rendering a HTML SELECT. Are there any work around\'s for this or do we have to just accept IE will not look as good as other b

14条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 05:22

    Finally found in http://viralpatel.net/blogs/2009/09/setting-height-selectbox-combobox-ie.html a simple solution (at least for IE8):

    font-size:      1.0em;
    

    BTW, for Google Chrome, found this workaround at How to standardize the height of a select box between Chrome and Firefox? */

    -webkit-appearance: menulist-button;
    

提交回复
热议问题