HTML5 tags in IE 8 & IE 7

前端 未结 3 1016
清酒与你
清酒与你 2020-12-10 07:14

Hi as I mentioned in title, in Firefox (firebug), IE-9/10, Chrome it shows properly like:

...
3条回答
  •  孤街浪徒
    2020-12-10 07:46

    IE7/8 do not support the new HTML5 tags like footer.

    If you use them, you will get issues like this, and rendering glitches as a result.

    There are work-arounds in the form of the html5shiv and Modernizr polyfill scripts. Use one of these libraries to add support for HTML5 tags to old IE versions.

    If you're not prepared to use a Javascript library to fix IE's HTML5 support, the other option is to stop using these tags and switch back to using

    tags for everything, with classes to identify them semantically.

提交回复
热议问题