任何人都可以帮助解决基本的 HTML/CSS 浮动问题吗?我有一个带有浮动左 div 框的常规 div。我想要一个带边框的 h1,但它与浮动左 div 重叠。有小费吗?示例代码显示下面的问题。
[编辑:这是问题的图片: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>