Those who make ie6-8 ashamed of the substitution type JS

Source: Internet
Author: User

1,html5shiv

This JS is very simple, can let IE8 identify some new tags, commonly used such as the header Footor section, you can use better semantic tags.

Introduction Method:

    <!-- [If Lt IE 9]>        <script src= ". /.. /scripts/lib/html5.js "></script>    
<! [EndIf] -

2,json2.js

He can add Json.parse. json.stringify two JSON serialization deserialization method

Introduce the method, IE8 the following introduction

    <!-- [If Lt IE 8]>        @Scripts. Render ("~/scripts/json2.js")    <![ ENDIF] -


3,jquery

Yes, after 2 jquery, for ie6-8 still have to maintain 1 update, ashamed of it.

Introduction Method:

    <!-- [If Lt IE 9]>        @Scripts. Render ("~/scripts/jquery/jquery-1.11.1.min.js")    <![ ENDIF]-    <!--[if GTE IE 9]>    -- Scripts.render ("~/scripts/jquery/jquery-2.1.1.min.js")    <!--<![ ENDIF] -

4,respond

Respond.js can let ie6-8 support CSS's Media query responsive scheme.

    <!-- [If LTE IE 8]>    @Scripts. Render ("~/scripts/lib/respond/respond.min.js")    <![ ENDIF] -


5,excanvas

He used IE's VML to make the low version IE simulation canvas, the efficiency is much lower.

Case: Baidu Echart Chart control

6.PIE

Allowing Ie6-8 and IE9 to support the CSS3, such as rounded shadow gradients, also uses VML, which has a very low performance cost.

7,flash related JS

Some JS in the low version of IE will use flash as a substitute

Case 1:webuploader Upload Control.

Ie6~9 will use the Flash version, IE10 and other browsers will use the HTML5 version.

Case 2:ckplayer Video Player

He contains both the Flash version and the HTML5 version to be compatible with more browsers.

Conclusion:

I particularly like this type of JS, more use of advanced browser support features such as HTML5 to happy play, and the lower version of IE, the alternative to better the lower version of IE Edge.

Those who make ie6-8 ashamed of the substitution type JS

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.