CSS Compatibility of IE7 beta2

Source: Internet
Author: User
Tags versions

When IE7 beta1 was launched, I tested it for the first time. At that time, I was disappointed to find that its support for CSS had almost no changes. MS recently launched IE7 beta2, which has made many new improvements and changes. However, these improvements and changes may lead to some layout errors on the original normal web pages or the previously usable Hack skills are no longer available. At the beginning of the year, MSDN listed the possible problems for Developers (this is the original article). Here I will briefly describe the main problems and hope to help you.
Note: Before the release of IE7, all the content mentioned below may change.
The box model has changed !!!
I am afraid this will make developers who use Web standards to build large websites feel the back-to-back changes, but don't worry too much. The main change is that the box model overflows (overflow) content processing method.
Assume that there is a box with a width of PX and a height of PX. At present, the main method of IE is to automatically increase the box to PX. IE7 beta2 adopts the same processing method as FF: the box remains unchanged, and the overflow part is rendered outside the box. That is to say, the overflow value of the box actually uses the W3C default value "visible ".
If your existing layout is dependent on IE's "automatic support", be careful and you may encounter problems (especially dynamic content web pages ).
The XML prolog may affect the box model.
Oh, My GOD! Another box model!
As you know, IE has two rendering modes: Quirks Mode and Strict Mode. Quirks Mode is basically non-standard, including the box model. Its rendering method differs from W3C standard. The Strick Mode is basically a standard (neither an absolute standard nor an absolute non-standard ......). In IE6 and earlier versions, the rendering mode will be selected based on the DocType declaration written in the first line (or only the first line) of the XHTML document. If you find a DocType that you can recognize, such as XHTML Transitional or XHTML Strict, it uses Strict Mode for rendering. Quirks Mode is used in all other cases.
Some developers explicitly declare that their XHTML document is an XML document and will be in the first line of the document (the problem is here, it must also be in the first line) add the preface of XML (prolog ). For example:
<? Xml version = "1.0" encoding = "gb2312"?> Although the original intention is to make the document more "standard", because IE does not recognize this line of words, the results are still rendered in Quirks Mode.
IE7 beta2 solves this problem. It will skip the prolog and check DocType. Therefore, IE6 and earlier versions may use Quirks Mode for rendering, while IE7 beta2 uses Strict Mode for rendering.

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.