How to solve the problem that IE6 does not support attributes such as min-height or max-width
This article introduces the relevant knowledge of "how to solve the problem that IE6 does not support attributes such as min-height or max-width". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The first method: we can use IE6 does not recognize! important to achieve:
The code is as follows:
Height:auto! important
Height:100px
Min-height:100px
In these three sentences, you can realize that the min-height value under IE6 is 100px. I don't know why it's so magical, but it just solves the problem.
The second method: overflow:visible attribute implementation:
The code is as follows:
Min-height:100px
_ height:100px
Overflow:visible
The second method is to explain:
The sentence min-height:100px; can be displayed normally in ie7 and FF.
The sentence _ height:100px showed normal in the ie6,ie5 test. But cannot be verified by W3C.
The sentence "overflow:visible;" is used to indicate that # test is automatically extended when the content exceeds 100px.
Note: you must make sure that everything except # test is overflow:visible. Otherwise, the excess will not be displayed.
This is the end of "how to solve the problem that IE6 does not support attributes such as min-height or max-width". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!