网上有的说使用html5shiv,但是国内网络不能打开goolge网站。
看到一种facebook的做法,不知这样适合国情吗,
大家一般是怎么解决的?
<!--[if lte IE 8]>
<noscript>
<style>.html5-wrappers{display:none!important;}</style>
<div class="ie-noscript-warning">您的浏览器禁用了脚本,请<a href="">查看这里</a>来启用脚本!或者<a href="/?noscript=1">继续访问</a>.
</div>
</noscript>
<![endif]-->
你贴的代码是提示用户禁用了脚本的,我猜你本意是要贴提示升级浏览器的?
html5shiv可以下载下来放到自己的服务器上,然后CSS里把几个新的标签display:block就行了。
(当然如果已这种方式来兼容ie8,是要考虑如果用户禁用了脚本的情况。)