Does Internet Explorer 8 support HTML 5?

前端 未结 13 2522
不知归路
不知归路 2020-11-28 03:44

Is there any HTML5 support in IE8? Is it on the IE8 roadmap?

相关标签:
13条回答
  • 2020-11-28 04:07

    You can use this to make IE8 understand/support basic HTML5 tags.

    <!--[if lt IE 9 ]> 
        <script type="text/javascript">
            var html5Elem = ['header', 'nav', 'menu', 'section', 'article', 'aside', 'footer'];
            for (var i = 0; i < html5Elem.length; i++){
                document.createElement(html5Elem[i]);
            }
        </script>
    <![endif]-->
    
    0 讨论(0)
  • 2020-11-28 04:09

    Check out the caniuse guide for all HTML 5 features across all browsers and versions, including future versions.

    0 讨论(0)
  • 2020-11-28 04:11

    Modernizr is also a great option for giving IE HTML5 rendering capabilities.

    0 讨论(0)
  • 2020-11-28 04:14

    IE8's HTML5 support is limited, but Internet Explorer 9 has just been released and has strong support for the new emerging HTML5 technologies.

    0 讨论(0)
  • 2020-11-28 04:17

    You can get HTML5 tags working in IE8 by including this JavaScript in the head.

    <script type="text/javascript">
     document.createElement('header');
     document.createElement('nav');
     document.createElement('menu');
     document.createElement('section');
     document.createElement('article');
     document.createElement('aside');
     document.createElement('footer');
    </script>
    
    0 讨论(0)
  • 2020-11-28 04:19

    Also are supported HTML5 hashchange event and ononline, offline event

    0 讨论(0)
提交回复
热议问题