Setting the height of a SELECT in IE

前端 未结 14 1943
忘掉有多难
忘掉有多难 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:18

    Not sure but I think this was a question not about the height of a 'multiple' type of select element but a drop-down type of select element. I have come across times when the drop-down looks squashed and does not show clearly the selected value. Undoubtedly it has to do with CSS style info in use on the page. The only way to stop it is either change the CSS (which would likely affect the whole page or parts of it in ways you don't want affected) or use style info in the select element itself to override the CSS that's clobbering it. Example:

    
    

    Hope this helps.

提交回复
热议问题