html5新元素(header,nav,footer,..)在IE中不起作用 [英] html5 new elements (header, nav, footer, ..) not working in IE

查看:170
本文介绍了html5新元素(header,nav,footer,..)在IE中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

html5新元素(header,nav,footer,..)在IE中不起作用

html5 new elements (header, nav, footer, ..) not working in IE

推荐答案

HTML5 shiv脚本,以便允许在旧IE浏览器中对HTML5元素进行样式设置: http://code.google .com / p / html5shiv /

You need to include the HTML5 shiv script in order to allow styling of HTML5 elements in older IE browsers: http://code.google.com/p/html5shiv/

要使用,请在CSS上方的元素中包含以下脚本:

To use, include the following script in your element above your CSS:

<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->

这篇关于html5新元素(header,nav,footer,..)在IE中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆