HTML和CSS'浮动'属性
这个问题在这里已经有了答案:
  编辑:好吧,我现在看到你的网站,一种解决方案是在h3元素后面添加一个<div class="clearfix"> 。  然后你设计这个div : 
.clearfix{
  clear: both;
}
  第一个答案:如果我理解你的问题,你只需要你的白色背景覆盖你的标题。  由于你的标题是position: relative ,下面的代码应该工作: 
header div{
 background-color: rgba(255,255,255,0.80)
 position: absolute;
 top: 0;
 bottom: 0;
 right: 0;
 left: 0;
}
  它只是简单地将你的白色图层设置为position:absolute并将其拉伸以覆盖容器块,这是您的标题;) 
上一篇: The HTML and CSS 'float' property
下一篇: why isn't the color I added on the header background visible?
