【发布时间】:2010-07-08 13:47:58
【问题描述】:
我想,我有一个不寻常的问题。好吧,我有一个以绝对位置开头的 div 的网页。
.head_warp
{
width:100%;
display:block;
height:238px;
margin:0 auto;
padding:0;
position:absolute;
text-align:center;
background-image:url(images/demo6_fon.png);
background-position:center;
background-position:top;
background-repeat:repeat-x;
z-index:-9999;
}
然后我有一个容器
#container_out
{
width:1024px;
margin:0 auto;
}
HTML 是这样的:
<div class="head_warp"></div>
<div id="container_out"></div>
这个想法是将“容器”中的内容显示在“head_warp”上,并且在我测试过的任何浏览器中都可以。 Chrome、FF、Safari 甚至 IE8 和 IE7。但是我的同事使用的是带有 Windows VISTA 的 IE8,看看结果如何 alt text http://www.pechat.mdkbg.com/problem.jpg
有什么问题?
【问题讨论】:
标签: css internet-explorer