How to solve the select overlap bug in IE6?

后端 未结 10 1686
别跟我提以往
别跟我提以往 2021-02-02 09:43

When using IE, you cannot put an absolutely positioned div over a select input element. That\'s because the select element is considered an ActiveX object and is on top of every

10条回答
  •  不要未来只要你来
    2021-02-02 09:59

    Thanks for the iframe hack solution. It's ugly and yet still elegant. :)

    Just a comment. If you happen to be running your site via SSL, the dummy iframe tag needs to have a src specified, otherwise IE6 is going to complain with a security warning.

    example:

    
        
    
    

    I've seen some people recommend setting src to blank.html ... but I like the javascript way more. Go figure.

提交回复
热议问题