IE6 min max width:
The code is as follows: |
Copy code |
. Min-width { Min-width: 600px; _ Width: expression (document. body. clientWidth <300? "300px": "auto "); } . Max-width { Max-width: 600px; _ Width: expression (document. body. clientWidth> 600? "600px": "auto "); } |
IE6 minimum and maximum height:
The code is as follows: |
Copy code |
. Min_height { Min-height: 200px; _ Height: expression (this. scrollHeight <200? "200px": "auto "); } . Max_height { Max-height: 400px; _ Height: expression (this. scrollHeight> 400? "400px": "auto "); } |
Maximum and minimum width of IE6:
The code is as follows: |
Copy code |
. 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_width { Border: solid 1px red; Height: 500px; Max-width: 600px; Min-width: 300px; _ Width: expression (document. body. clientWidth <300? "300px ": (Document. body. clientWidth> 600? "600px": "auto ")); } |
Maximum and minimum IE6 height:
The code is as follows: |
Copy code |
. Min_and_max_height { Min-height: 200px; Max-height: 400px; _ Height: expression ( This. scrollHeight <200? "200px ": (This. scrollHeight> 400? "400px": "auto ") ); } |