【发布时间】:2012-09-26 00:24:55
【问题描述】:
两个问题,都是IE7引起的
1) 我有一个名为 .postheader 的 div 包含标题和另一个名为 .clip 的 div。如您所见,剪辑应悬停在内容上,而不是向下推。 (使用任何其他浏览器进行测试)。它目前给了我一个巨大的差距,它应该只和文本一样长。
.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;
}
【问题讨论】:
标签: css internet-explorer-7 internet-explorer background