Hi as I mentioned in title, in Firefox (firebug), IE-9/10, Chrome it shows properly like:
<footer>
<div>...</div>
</footer>
where as in IE-8/7 it shows like:
<footer />
<div>...</div>
</footer/>
Any help is appreciated.
Hi as I mentioned in title, in Firefox (firebug), IE-9/10, Chrome it shows properly like:
<footer>
<div>...</div>
</footer>
where as in IE-8/7 it shows like:
<footer />
<div>...</div>
</footer/>
Any help is appreciated.
听起来您需要使用 HTML 5 shim 和 selectivizr 来为旧版本的 IE 添加对高级选择器类型(例如:nth-child)的 CSS 支持。
http://html5shim.googlecode.com/svn/trunk/html5.js https://github.com/keithclark/selectivizr/blob/master/selectivizr.js
将这两个都包含在您的页面中的 IE 条件注释中,它应该可以解决您的问题。
我只是用它来启用 IE 中的 HTML5 元素:
<script>
'article aside footer header nav section time'.replace(/\w+/g,function(n){document.createElement(n)});
<script>