Do not support
HTML5
the new browser tab, the new tab will these take place within the analytic element (inline
) treat, so we only need to convert it into a block element (block
) can be used, but inIE9
the following versions, and these can not be resolved properly the new label, but it can be identified bydocument.createElement('tagName')
custom labels created, so our solution is theHTML5
new label by alldocument.createElement
( 'tagName') to create it again, soIE
low version can properly resolveHTML5
new label of.
Disposition: in the actual development we are more used to load a JS library tripartite version detection by IE browser to resolve compatibility issues (in IE compatibility testing following: Use ieTester software)
html5shiv
: Resolving does not recognize the browser html5 new label ie9 less, and cause problems CSS does not work.
respond
: Let not support css3 Media Query browsers, including IE6-IE8 and other browsers support queries.
We solve problems, mainly aimed at ie
the low version, which is the only version low ie
before the implementation of fishes.
<!--[if lt IE 9]>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.js"></script>
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<![endif]—>
Conditional comments
<!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]-->
<!--[if IE]> 所有的IE可识别 <![endif]-->
<!--[if IE 6]> 仅IE6可识别 <![endif]-->
<!--[if lte IE 6]> IE6以及IE6以下版本可识别 <![endif]-->
<!--[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]-->
<!--[if IE 7]> 仅IE7可识别 <![endif]-->
<!--[if lt IE 7]> IE7以下版本可识别 <![endif]-->
<!--[if gt IE 7]> IE7以上版本可识别 <![endif]-->
<!--[if IE 8]> 仅IE8可识别 <![endif]-->
<!--[if IE 9]> 仅IE9可识别 <![endif]-->