<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>test</title> <style type="text/css"> <!-- html,body{ margin:0; height:100%} #wrapper{ margin:0 auto;width:80%;height:100%} #left{ float:left; width:30%; height:100%; background:#eeeeee} #right{ float:left; width:70%; height:100%; background: #eeeecc} --> </style> </head> <body> <div id="wrapper" style="float:inherit"> <div id="left">左侧栏</div> <div id="right">右侧栏</div> </div> </body> </html>
css控制div两侧分栏
最新推荐文章于 2024-07-12 08:49:29 发布