Html5元素在ie8中不起作用?

Html5元素在ie8中不起作用?,html,internet-explorer-8,cross-browser,Html,Internet Explorer 8,Cross Browser,我试图让我在html5中做的网页在ie8中工作,但它看起来到处都是 它可以在ie9+、chrome和firefox中完美运行 我尝试在css之前的head部分添加html5.js,但仍然不起作用 <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> 此网页供您测试: 检

我试图让我在html5中做的网页在ie8中工作,但它看起来到处都是

它可以在ie9+、chrome和firefox中完美运行

我尝试在css之前的head部分添加html5.js,但仍然不起作用

<!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

此网页供您测试:


检查IE8是否支持您希望使用以下链接实现的HTML5元素:

IE8既旧又有缺陷,它肯定不支持大多数HTML5元素(用IE8替换比较列表中的IE9)


您使用的是https:,而shim/shiv是http:,因此请删除http:


<!--[if lt IE 9]>
   <script>
      document.createElement('header');
      document.createElement('nav');
      document.createElement('section');
      document.createElement('article');
      document.createElement('aside');
      document.createElement('footer');
   </script>
<![endif]-->

加载css后尝试粘贴,但仍在头部。@cab我尝试过,但仍然不起作用,谢谢将其放回原处,并看到我的回答海报上说它可以在其他浏览器上工作,但不能在IE8上工作……它如何能在其他浏览器上工作?因为所有其他浏览器都不需要它,它处于条件之间
<!--[if lt IE 9]>
   <script>
      document.createElement('header');
      document.createElement('nav');
      document.createElement('section');
      document.createElement('article');
      document.createElement('aside');
      document.createElement('footer');
   </script>
<![endif]-->