IE8 and border css property on select menus

后端 未结 4 865
梦谈多话
梦谈多话 2021-01-14 15:06

I am getting a really strange behaviour when viewing a very simple piece of HTML in IE, served up by IIS. I am at a loss to explain this...

Take the following html

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-14 15:16

    This might fix the issue:

     
    

    EDIT:

    I have tried replicating the issue, you are right it doesn't work on IE8 but if you are on IE8 Standards/Compatibility mode it works on IE7 Standards/QuirksMode it does not, don't know why it's not working on IE7 Standards/Quirksmode.

    Anyway another workaround is to wrap the select element with another inline element and put the border on wrapper element.

    
       
    
    

提交回复
热议问题