<style>
.parent
{
width:100%;
}
.left
{
width:140px;
float:left;
}
.center
{
margin-left:150px;
margin-right:110px;
}
.right
{
width:100px;
float:right;
}
.clear
{
clear:both;
}
</style>
<div class="parent"><div class="left"></div><div class="center"></div><div class="right"></div><div class="clear"></div></div>

--注意:
当然如上布局时在ff,ie8下时,parent底部会产生空白。解决办法修改.parent,添加overflow:hidden;

相关文章:

  • 2021-07-31
  • 2021-11-08
  • 2021-06-08
  • 2021-07-15
  • 2021-06-02
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-12-14
相关资源
相似解决方案