Setting the height of a SELECT in IE

前端 未结 14 1872
忘掉有多难
忘掉有多难 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条回答
  • select{
      *zoom: 1.6;
      *font-size: 9px;
    }
    

    If you change properties, size of select will change also in IE7.

    0 讨论(0)
  • 2020-12-03 05:30

    i wanted to set the height of the select box to be smaller than the default. i used

    select {
       position: relative;
       height: 10px !important;
       display: inline-block;
    }
    

    this works on ie7 and ie8. you might only need the height property, i just added the position and display to override properties inherited from higher up the dom.

    0 讨论(0)
提交回复
热议问题