CSS两列布局,右侧固定,左侧自适应宽度 
<div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;"
    <div style="width:200px; float:right; background:#090">这是右侧的内容</div
    <div style=" margin-right:210px; background:#F33">这是左侧的内容,自适应宽度</div
</div
  
  
CSS两列布局,左侧固定,右侧自适应宽度 
<div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;"
    <div style="width:150px; float:left; background:#6F0">这是左侧的内容 固定宽度</div
    <div style=" margin-left:160px; background:#FC0">中间内容,自适应宽度</div
</div
  
CSS三列布局,左右宽度固定,中间自适应宽度 
<div style="width:90%; margin:0 auto; overflow:auto; _display:inline-block;"
    <div style="width:200px; float:right; background:#393"> 这是右侧的内容 固定宽度</div
    <div style="width:150px; float:left; background:#F60 ">这是左侧的内容 固定宽度</div
    <div style=" margin-left:160px;margin-right:210px; background:#6C3;">中间内容,自适应宽度</div
</div>

 overflow:auto; _display:inline-block; 是清除浮动的,_display:inline-block;针对IE6的。

 

相关文章:

  • 2022-01-04
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2022-01-10
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
相关资源
相似解决方案