让低版本浏览器兼容 HTML5 的方法

引用Google的html5.js文件到head部分

<script src="http://cdn.bootcss.com/html5shiv/r29/html5.min.js"></script>

并在css里面加上这段

/*html5*/
article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block}

如果用到 jQuery ,可能高版本的 jQuery 不能支持低版本的 ie, 需要用到低版本的 jQuery1.9.1。

关于本文如您有任何想法和意见,欢迎与我们联系,邮箱地址zhi@uqugu.com
您对本文有什么看法,喜欢或者不喜欢都可以发表意见。