IE6 supports methods compatible with max-height and min-height
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!