如何让IE6实现min-width效果?由于IE6不支持 min-width 属性,所以只能采用迂回的方法来实现。具体有以下四种方法:
方法一:
.wrapper {
width:auto !important;
width:500px;
min-width:500px;
}
方法二:
.wrapper {
min-width:500px;
_width:500px;
}
方法三:
.wrapper {
min-width:500px;
_width:expression((document.documentElement.clientWidth||document.body.clientWidth) < 500 ? “500px”: “auto”);
}
方法四:
.wrapper {
min-width:500px;
_width:expression(((document.compatMode && document.compatMode == “CSS1Compat”)? document.documentElement.clientWidth : document.body.clientWidth) < 500? “500px” : “auto”);
}