Setting the height of a SELECT in IE

前端 未结 14 1923
忘掉有多难
忘掉有多难 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条回答
  •  时光取名叫无心
    2020-12-03 05:10

    you can use a combination of font-size and line-height to force it to go larger, but obviously only in the situations where you need the font larger too

    edit:

    Example -> http://www.bse.co.nz EDIT: (this link is no longer relevant)

    the select next to the big search box has the following css rules:

    #navigation #search .locationDrop {
        font-size:2em;
        line-height:27px;
        display:block;
        float:left;
        height:27px;
        width:200px;
    }
    

提交回复
热议问题