Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that IE6 does not support attributes such as min-height or max-width

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report