Article Introduction: CSS controls the maximum minimum width and height of the page (compatible with the IE6 version). |
/* min Width * *
. min_width{min-width:300px;
/* Sets max-width for IE * *
_width:expression (Document.body.clientWidth < 300?) "300px": "Auto");
}
/* Maximum Width * *
. max_width{
max-width:600px;
/* Sets max-width for IE * *
_width:expression (Document.body.clientWidth > 600?) "600px": "Auto");
}
/* Minimum Height * *
. min_height{
min-height:200px;
/* Sets min-height for IE * *
_height:expression (This.scrollheight < 200?) "200px": "Auto");
}
/* Maximum Height * *
. max_height{
max-height:400px;
/* Sets max-height for IE * *
_height:expression (This.scrollheight > 400?) "400px": "Auto");
}
/* Maximum minimum width * *
. min_and_max_width{
min-width:300px;
max-width:600px;
/* Sets Min-width & max-width for IE * *
_width:expression (
Document.body.clientWidth < 300? "300px":
(Document.body.clientWidth > 600?) "600px": "Auto")
);
}
/* Maximum minimum height * *
. min_and_max_height{
min-height:200px;
max-height:400px;
/* Sets Min-height & max-height for IE * *
_height:expression (
This.scrollheight < 200? "200px":
(This.scrollheight > 400?) "400px": "Auto")
);
}