Setting the height of a SELECT in IE

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

    It is correct that there is no work-around for this aside from ditching the select element, but if you only need to show more items in your select list you can simply use the size attribute:

    
    

    Doing this you'll have additional empty lines if your collection of items lenght is smaller than size value.

提交回复
热议问题