我有两个 div:
<div style="height:30px; font-weight:bold" align="center">
<div class = 'membership_description'>
stuff here, nested <div> etc.
</div>
<div style="height:30px; font-weight:bold" align="center">Using Coupon &quot;special-current&quot; - Special access just for current members</div>
出于某种原因,第二个 div 最终出现在第一个 div 下所有内容的中间。
我为第一个 div 尝试了“display: block”但没有爱,想法?
我想我看到了部分问题——存在这种内联样式——当我从 Google Chrome 中删除“高度”时,它变得正常了。但我无权访问它,只有 css...我可以覆盖吗?
最佳答案
添加<div style="clear: both"></div>
在嵌套的 div 下
关于css - 如何使两个连续的 "div"标签而不是 "bleed"相互融合?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7373457/