Max and Min degree and height CSS height control in IE6 (compatible Version)

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.