original link: http://www.vvcha.cn/c.aspx? Id = 3057
/* Minimum degree of parallelism */. min_width {Min-width: 300px;/* sets max-width for IE */_ width: expression (document. Body. clientwidth <300? "300px": "Auto");}/* maximum degree of parallelism */. 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 and minimum degree of parallelism */. 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 and minimum height */. min_and_max_height {Min-Height: 200px; max-Height: 400px;/* sets Min-Height & Max-height for IE */_ Height: expression (this. scrollheight <200? & Quot; 200px & quot; this. scrollheight & gt; 400? "400px": "Auto "));}
In addition, use CSS express with caution to expand the reading:
1. Introduction to expression in CSS
2. CSS expression Optimization