Home > Web Front-end > HTML Tutorial > 兼容IE6浏览器的最大高度和最小高度css代码_html/css_WEB-ITnose

兼容IE6浏览器的最大高度和最小高度css代码_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:30:11
Original
1221 people have browsed it

兼容IE6浏览器的最大高度和最小高度css代码:
IE6浏览器是不支持最大高度和最小高度属性的,下面就通过兼容性措施实现此功能。
一.最大高度效果:

 

.max_height{  max-height:400px;  _height:expression(this.scrollHeight > 400 ? "400px" : "auto");}
Copy after login

二.最小高度效果:

.min_height{  min-height:200px;  _height:expression(this.scrollHeight < 200 ? "200px" : "auto");}
Copy after login

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=13031

更多内容可以参阅:http://www.softwhy.com/divcss/

 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template