最小宽度:
复制代码代码如下:
.min_width{
min-width:300px;
_width:expression(document.body.clientWidth < 300 ? "300px" : "auto");
}
最大宽度
复制代码代码如下:.max_width{
max-width:600px;
_width:expression(document.body.clientWidth > 600 ? "600px" : "auto");
}
最小高度
复制代码代码如下:.min_height{
min-height:200px;
_height:expression(this.scrollHeight < 200 ? "200px" : "auto");
}
最大高度
复制代码代码如下:.max_height{
max-height:400px;
_height:expression(this.scrollHeight > 400 ? "400px" : "auto");
}
最大最小寬度
复制代码代码如下:.min_and_max_width{
min-width:300px;
max-width:600px;
_width: expression(document.body.clientWidth < 300 ? "300px" :( document.body.clientWidth > 600 ? "600px" : "auto"));
}
最大最小高度
复制代码代码如下:.min_and_max_height{
min-height:200px;
max-height:400px;
_height: expression(this.scrollHeight < 200 ? "200px" :( this.scrollHeight > 400 ? "400px" : "auto"));
}
兼容IE6的网页最小最大宽度和最小最大高度css写法
2021-05-08 21:11:57声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。 如涉及版权问题,请提交至online#300.cn邮箱联系删除。
热门文章