我试着制作我在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]-->
网页在此供您测试:
发布于 2013-12-31 17:18:37
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
您在https:,而shim/shiv是http:所以移除http:
发布于 2013-12-31 16:57:23
检查IE8是否支持使用以下链接实现的HTML5元素:HTML5支持
IE8是一个古老而又充满缺陷的元素,它肯定不支持大多数HTML5元素(在比较列表中用IE8代替IE9 )。
发布于 2014-04-16 13:00:55
<!--[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]-->
https://stackoverflow.com/questions/20860614
复制相似问题