我有一个简单的布局 http://195.228.155.116/szilk/public/templates/globallog/bemutatkozas.html它在 Chrome、Safari 甚至 Opera (OS X) 中运行良好。让我惊讶的是 Firefox。 (IE 和 Win 尚未测试)。
问题是fieldset.ownerbox
在 Firefox 中不浮动。 (饼图下方的两个半透明字段集)
此处应用的 CSS 规则:
#owners {
position: relative;
width: 940px;
left: 0px;
margin-left: 0px;
z-index: 1;
top: -240px;
font-size: 16px;
}
.ownerbox {
width: 310px;
height: 150px;
padding: 10px;
margin-right: 20px;
float: left;
background: rgba(255,255,255,0.5);
color: #000;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
}
.ownerbox.large {
width: 500px;
padding: 0px 10px 20px 10px;
}
请帮忙,我的方法有什么问题吗?
重新调整宽度,以便考虑填充。你可以overflow-x:hidden;
on #owners
看看它看起来如何“包含”。
或者调整#owners 上的宽度。
编辑:看来你只需要clear:both
on #owners
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)