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 implement IE6 to support minimum height min-height and maximum height max-height

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

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!

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: 269

*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