示例 :
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> body{ margin:0; padding:0; font-size:30px; font-weight:bold } div{ line-height:50px } .left{ width:200px; height:600px; background:#ccc; float:left; left:0; top:0 } .main{ height:600px; margin:0 200px 0 200px; background:#9CF; } .right{ height:600px; width:200px; position:absolute; top:0; right:0; background:#FCC; } </style> </head> <body> <div class="left">left</div> <div class="main">设计首页的第一步是设计版面布局。</div> <div class="right">right</div> </body> </html>左右为固定宽高 , 中间部分自适应