How to implement IE6 to support minimum height min-height and maximum height max-height
This article introduces the knowledge about "how to realize IE6 to support minimum height min-height and maximum height max-height". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
IE6 supports max-height solutions
IE6 supports maximum height resolution CSS code:
The code is as follows:
.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.
IE6 supports both max-height and min-height methods.
Make all browsers, including IE6, support both maximum and minimum heights.
The code is as follows:
.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 >620 ? "620px" : (this.scrollHeight < 40 ? "40px" : "auto"));
Description: The above code is used to make CSS style properties with a minimum height of 40px and a maximum height of 620px
"How to achieve IE6 support minimum height min-height and maximum height max-height" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!