0

像往常一样,我们在 IE 中遇到了问题。

无论出于何种原因,标题都没有出现在 IE7 中。

http://stevens.usc.edu/innovationatUSC/

任何帮助将不胜感激!

4

4 回答 4

1

IE7 不理解 HTML5 元素,你需要一个“shiv”,在这里你可以找到它:http ://code.google.com/p/html5shiv/

于 2012-07-03T20:26:30.437 回答
1

将此代码插入到 head 元素中:

<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

此外,您应该为所有 html5 元素添加一个“显示:块”作为 CSS 重置的一部分,以便 IE 知道它们是块元素:

article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}
于 2012-07-03T20:36:07.203 回答
0

如 Dive Into Html 5 中所述,IE7 默认不支持该标签。

http://fortuito.us/diveintohtml5/semantics.html#unknown-elements

于 2012-07-03T20:30:03.617 回答
0

尝试在标题元素上设置宽度。

您的样式表中有一个“.header {width:960px)”,但这不会影响 header 元素,因为它不是一个类,所以它应该只是“header {width:960px)”。

它可能应该从它的父元素#page 继承宽度,但是对于 IE,你永远不知道。

于 2012-07-04T10:38:55.400 回答