This time I will bring you the importantproperties that are compatible with IE8This is a practical case, let’s take a look at it.
The code is as follows:
1. What does this mean?
2. Some examples use "," to separate IE versions, while some use ";", which one is correct?
3. I want to know the meaning of the sequence IE=9; IE=8; IE=7; IE=EDGE.
Used
Reply:
For IE8 and above, for example:
The code is as follows:
Force the browser to render according to a specific version standard. But it does not support IE7 and below versions. If separated by a semicolon (;), there will be different compatibility for different browser versions. For example,
The above shows that IE8 and IE7 will be rendered according to the IE7 standard, but IE9 will still follow the IE9 standard. render. It allows for different backward compatibility levels. Although in a real situation, you only need to choose one version:
, this means that the browser will be forced to render according to the latest standards. Just like using the latest version of
JQueryon Google’s CDN, this is to follow the latest version, but it may also break your layout because there is no fixed version.Finally, consider the following
< p>< p>
But
still is the first choice.
StackOverFlow原链接;http://stackoverflow.com/questions/14611264/x-ua-compatible-content-ie-9-ie-8-ie-7-ie-edge?answertab=active#tab-top
Other
related articles!In HTML lists, what are the differences between dl(dt,dd), ul(li), and ol(li)
htmlHow to use the title attribute to display text when the mouse is hovering
What are the uses of the HTML head tag
The above is the detailed content of Important attributes for IE8 compatibility: X-UA-Compatible. For more information, please follow other related articles on the PHP Chinese website!