Research on common IE compatible plug-ins

Source: Internet
Author: User

1, Html5shiv.js Html5.js

Applicable browser: IE 6 7 8

Purpose: Let the low version ie browser (678) Support HTML5 new tags

How to use:

<!--[if LT IE 9]><script src= "Dist/html5shiv.min.js" ></script><! [endif]-->

Try to use the compressed JS, before the body tag loaded

Principle:

Using the CreateElement method, This includes document.createelement and Document.createdocumentfragment, which dynamically adjusts the HTML5 elements of the current page and provides the most basic styling for those elements.

What are the new tags for HTML5?

ABBR, article, aside, audio, canvas, DataList, Details, dialog, EventSource, figure, Footer, header, Hgroup, Mark, menu, M Eter, nav, output, progress, section, time, video

Code Rationale Analysis:

Js

<!--[if Lt ie9]> <script>    (function () {     if (!      /*@[email protected]*/     0) return;     var e = "abbr, article, aside, audio, canvas, DataList, Details, dialog, EventSource, figure, Footer, header, Hgroup, Mark , menu, meter, nav, output, progress, section, time, video. Split (', ');     var i= e.length;     while (i--) {         document.createelement (E[i])     }) () </script><! [endif]-->

Css

/*html5*/article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block}

Equivalent to invoking the browser's creation element and setting it to block

2, Respond.js

Applicable browser: IE 6 7 8

Respond.js is a fast, lightweight polyfill that provides Queries and min-width features for media queries for Ie6-8 and other browsers that do not support CSS3 media max-width, enabling responsive web design (responsi ve Web Design).

WARNING:Respond.js doesn ' t work if you view the page via file://

Local file path under view, is not supported

3, IE-CSS3.HTC

Applicable browser: IE 6 7 8

Purpose: To allow IE 678 browser to support the CSS3 property. Includes: Border-radius,box-shadow,text-shadow

How to use:

. box {  -moz-border-radius:15px;/* Firefox *  /-webkit-border-radius:15px;/* Safari and Chrome */  Border-radi us:15px;  /* Opera 10.5+, as well as using IE-CSS3 's IE browser */  -moz-box-shadow:10px 10px 20px #000;/* Firefox */  -webkit-box-shadow:10px 10px 20px #000; /* Safari and Chrome */  box-shadow:10px 10px 20px #000,/* Opera 10.5+, and IE browser using IE-CSS3 *  /Behavior:url (ie-css 3.HTC); /* Notify IE Browser invoke script to act on ' box ' class */}

Note: the. htc file path is relative to the path of the HTML file, not to the CSS file. (Related studies)

Summary: The behavior property of IE is relative to the HTML document, not the same as other CSS properties, not relative to the CSS document.

To let IE browser support HTC file, need a "text/x-component" word of the content-type head, otherwise, will ignore behavior.

Principle:. HTC is a script file, similar to JS. But (it seems) only IE recognized him. HTC uses VML to combine scripts to draw CSS3 effects.

Note: VML is the abbreviation for the vector Markup Language (vectorial Markup Language). The markup language used by VML to vectorize graphics data. is a language based on XML syntax.

Code Rationale analysis: Slightly

Great God blog related article: http://www.zhangxinxu.com/wordpress/2010/04/let Ie6ie7ie8 browser support CSS3 Properties/

8 Ways to let IE6/IE7/IE8 support CSS3:http://blog.csdn.net/debugingstudy/article/details/11913497

------------------format

N, Name.js

Applicable browser:

Objective:

How to use:

Principle:

Code Rationale Analysis:

------------------PS, look at it, these days who also go compatible with ie678 Ah, Ie10 are Microsoft forced pop window upgrade Ie11. IE11 has been abandoned by Microsoft to engage in the edge of development. Sick, studying this. Really idle egg pain, for the edge to do a lot of optimization to help Microsoft quickly turn over IE than this strong

Research on common IE compatible plug-ins

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.