任何人都可以帮助一个基本的HTML/CSS浮动问题?我有一个浮动左边的div框的常规div。我想有一个带有边框的h1,但它与浮动左边的div重叠。有小费吗?示例代码在下面显示问题。CSS浮动重叠问题
[编辑:这是一个问题的图像:http://anony.ws/i/2012/06/21/UCHvY.png。我想最终的结果只是让我用h1的蓝线而不用重叠在左边。左栏的高度动态]
<style>
.wrapper {width:600px;}
.boxcolumn {
float:left;
width:150px;
border:1px red solid;
margin-right:12px;
}
h1 {border-bottom:1px #CCC solid;}
<div class="wrapper">
<div class="boxcolumn">
Left Column is not a fixed height. Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a
</div>
<h1>Some Title Goes Here</h1>
blah blah blah blah blah blahblah blah blahblah blah blahblah blah blahblah blah blahblah blah blahblah blah blahblah blah blahblah blah blahblah blah blahblah blah blah
<h1>Some Title Goes Here</h1>Left Column is not a fixed height.Left Column is not a fixed height.Left Column is not a
</div>
我不明白,你想下面的H1? – MCSI
似乎有不同的想法围绕着如何解决你的问题。我认为这会有帮助,如果你可以提供一个线框框架的例子,说明你如何期待你的布局。 –
添加了一个屏幕快照,显示了我想要实现的内容http://anony.ws/i/2012/06/21/UCHvY.png – james