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

Source: Internet
Author: User
/* 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? "200px ":
(This. scrollHeight> 400? "400px": "auto ")
);
}
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.