Web front-end small Kee _1:haslayout

Source: Internet
Author: User

Haslayout:ie unique CSS rendering engine.

Many bugs under IE are caused by no triggering of haslaayout. The methods for triggering haslayout are: width\height\position:relative or height:1%. But there are some side effects. Therefore, the perfect solution: zoom:1;

Of course: Zoom:1 in extremely complex CSS (especially when using DHTML) will not trigger haslayout. Just add: position:relative can

Special Note: Because Haslayout is intended to support block-level element box model parsing, it is mainly used for block-level elements. If used for inline elements, some special effects (such as alignment, etc.) are raised;

Height: The default is min-height under IE6;

IE6, IE7 settings Display:inline-block, you can trigger haslayout but there is a problem with alignment, you need to set the use of *vertical-align settings. Example vertical-align:-10px

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.