【发布时间】:2013-03-12 03:02:04
【问题描述】:
我有一个烦人的问题,它在 chrome 中运行良好,但在 Firefox 中,两个 div 之间无缘无故地存在间隙。
<div class="body-right">
<!-- VERTICAL GAP IS HERE -->
<div class="body-right-container">
<div class="body-right-pad">
</div>
</div>
铬:http://gyazo.com/d5464f5fe791c3958d28816dfd03803c
火狐:http://gyazo.com/f5f25eeab19622a2696e2d2510e1ea07
我的 css 中没有任何类型的边距会导致这种差距。有什么想法吗?
.body-right {
float: left;
width: 767px;
background-color:#ebebeb;
border-left: #c7c7c7 1px solid;
padding-left: 1px;
min-height: inherit;
}
.body-right-container {
display:block;
background-color:#ebebeb;
position: relative;
padding: 0 0 49px 49px;
min-height: inherit;
}
.body-right-pad {
width: 300%;
background-color:#ebebeb;
position: absolute;
left: 765px;
height: 100%;
}
【问题讨论】:
-
请在您的问题中包含相关代码。 (这包括你的 CSS)