Ie version does not solve the low awareness html5 tag

Do not support HTML5the 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 in IE9the following versions, and these can not be resolved properly the new label, but it can be identified by document.createElement('tagName')custom labels created, so our solution is the HTML5new label by all document.createElement( 'tagName') to create it again, so IElow version can properly resolve HTML5new 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 iethe low version, which is the only version low iebefore 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]-->

Guess you like

Origin www.cnblogs.com/ifme/p/11796244.html