Browsers that IE8 the following versions (including IE8) do not support HTML5 Label Property Solutions (MODERNIZR 2.6.2 plug-in usage)

Source: Internet
Author: User



Today, I want to use HTML5 label design a Web page, I am using the Firefox browser, I found a very serious problem, in addition to IE9 below the browser can not support HTML5 tags (article,aside,dialog,footer,header , Section,footer,nav,figure,menu).

I went online to find a lot of methods, a netizen said to use


<!--[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]-->


Or


<!--[If Lt ie9]>
<script src= "Http://html5shiv.googlecode.com/svn/trunk/html5.js" ></script> // Google is now out of the Chinese market (except China and North Korea can visit, hehe ~)
<! [endif]-->
/*html5*/article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block}


I have tried, but found or not, I am very puzzled, so I "brainwave" to find a few foreign site anatomy it found that the original is the use of Modernizr plug- in, I died horse when live horse medicine put on the Web page, Results I expected that all the HTML5 tags can be supported, I use the IE11 developer mode debugging IE6-IE8 have no problem, even bored I also tested the IE5 can also be perfect support.

In fact, this Modernizr plug -in function is very powerful and not only these if you want to learn more information can be viewed on the official website .

This is a brief introduction of Chinese is very good can see Oh ~ said so much, or to take out the plug-ins to share, mercilessly click here to download , so that your page is not bothered.


Original Address http://haiqiancun.com/bbs/bbsPage/0/detail/297e9e7946a599780146a5a38dde0003/1/20140812090617


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.