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

IE6 supports methods compatible with max-height and min-height

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains the "IE6 support compatible max-height, min-height methods", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "IE6 supports compatible max-height, min-height methods" bar!

When we write CSS, we often encounter a picture or a layout can not exceed the set a certain range of height value, and sometimes need to set a minimum height value to achieve alignment and other styles. Next, DIVCSS5 summarizes how to solve the problem that IE6 does not support max-height and does not support max-height; IE6 max-height and min-height do not support solutions.

1. IE6 supports max-height solutions.

IE6 supports maximum height resolution CSS code:

.yangshi {max-height:1000px;_height:_expression ((document.documentElement.clientHeight | | document.body.clientHeight) 1000? "1000px": ""); here 1000 and 1000px are the values you need, note that the three values are the same.

3. IE6 supports both max-height and min-height methods.

Let all browsers, including IE6, support both maximum and minimum height.

.yangshi {Max-Height:620px;Min-Height:40px;_height:_expression (this.scrollHeight > 620? "620px": (this.scrollHeight

< 40 ? "40px" : "auto"));} IE6支持Max-Height和支持Min-Height CSS代码 _height:_expression(this.scrollHeight >

"620px": (this.scrollHeight < 40? "40px": "auto")

Note: the function of the above code is to make the minimum height of the object 40px and the maximum height the CSS style attribute of 620px.

Thank you for your reading, the above is the content of "IE6 supports compatible methods of max-height and min-height". After the study of this article, I believe you have a deeper understanding of the problem that IE6 supports compatible methods of max-height and min-height, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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