Lan 0 Basic Learning HTML5 nineth compatibility Seven
1. compatibility 19
<! DOCTYPE html>
<meta charset= "UTF-8" >
<title>Document</title>
<style>
Body {
Background: #000;
}
. box {
width:400px;
height:400px;
Background:url ("Img/1.png");
}
</style>
<script src= "Js/dd_belatedpng_0.0.8a.js" ></script>
<script>
Dd_belatedpng.fix ('. box ');
</script>
<body>
<div></div>
</body>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/88/3C/wKiom1fsf7DSpHNoAAmRVOuDlYE972.png-wh_500x0-wm_3 -wmp_4-s_3064323683.png "title=" Blue Gull 0 Basic Learning HTML5 nineth Talk compatibility 12435.png "style=" Float:none; "alt=" Wkiom1fsf7dsphnoaamrvoudlye972.png-wh_50 "/>
2. Compatibility 20
<! DOCTYPE html>
<meta charset= "UTF-8" >
<title>Document</title>
<body>
<!--[If ie]>
I was Ie
<! [endif]-->
<!--[if IE 6]>
I was IE6
<! [endif]-->
<!--[if IE 7]>
I was IE7
<! [endif]-->
<!--[if IE 8]>
I was IE8
<! [endif]-->
</body>
3. compatibility 21
<! DOCTYPE html>
<meta charset= "UTF-8" >
<title>Document</title>
<style>
. box {
width:100px;
height:100px;
background:red;
background:yellow\9;
+background:black;
_background:pink;
}
</style>
<body>
<!--
CSS hack:
\9 Ie10 before the code of the IE browser parsing
+ or * indicates that IE7 includes IE browser before 7
_ indicates that IE6 includes IE browser before 6
-
<div></div>
</body>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/88/38/wKioL1fsf7DRj-G-AADKciLqKCc528.png-wh_500x0-wm_3 -wmp_4-s_872973132.png "style=" Float:none; "title=" Blue Gull 0 Basic Learning HTML5 nineth Talk compatibility 13267.png "alt=" Wkiol1fsf7drj-g-aadkcilqkcc528.png-wh_50 "/>
Lan 0 Basic Learning HTML5 nineth compatibility Seven