预览
源码
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <style> #header{ background-color:skyblue; color:white; text-align:center; padding:5px; } #nav { line-height:30px; background-color:#eeeeee; height:300px; width:150px; float:left; padding:5px; } #section { width:350px; float:left; padding:10px; } #footer { background-color:skyblue; color:white; clear:both; text-align:center; padding:5px; } </style> </head> <body> <div id="header"> <h1>顶部</h1> </div> <div id="nav"> <h1>左侧菜单</h1> </div> <div id="section"> <h1>右侧内容</h1> </div> <div id="footer">底部</div> </body> </html>