两个问题,既造成IE7IE7溢出和IE7背景图片
1)我有一个div称为.postheader持有的标题和另一个DIV叫.clip。正如你所看到的,剪辑应该悬停在内容上,而不是将其压下。 (使用任何其他浏览器进行测试)。它目前给我一个巨大的差距,当它应该只有文本一样长。
.postheader {
background:url(images/posthead.png) no-repeat;
min-height:100px;
max-height:600px;
padding-right:25px;
overflow:visible;
}
.clip {
width:214px;
height:275px;
float:right;
position:relative;
}
任何想法?我可以使最大高度更小,但会导致.clip div被切断。
2)在侧边栏中,有一些项目称为.sidebaritem。他们有一个只在IE7中没有显示的背景图片。我无法弄清楚这一点。
.sidebar-item
{
background:url(images/sidebar.png)top center no-repeat;
font-size: 12px;
margin-bottom: 20px;
padding-left: 18px;
padding-right:10px;
padding-top:8px;
min-height:200px;
}
谢谢,这有效,但它重叠我的文本。由于div没有显示每一篇文章,我不能使文本具有一定的宽度。任何想法? – user184106 2009-10-05 19:18:21
哦,和2)的空间工作!谢谢 – user184106 2009-10-05 19:22:07
感谢Brian。我用你的第一个建议快速入侵。一旦我休息,会编写你的建议:) – user184106 2009-10-05 20:24:37