DIV+CSS布局 宽度自适应


<!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=utf-8" />
<title>宽度自适应</title>
<style type="text/css">
 <!--
  body{margin:0 auto;position:relative;}
  #wrapper{ width:100%; margin:0 auto;}
  #mainer{ width:100%; float:left;margin-left:-250px; height:300px; }
  #sideBar{ float:left;width:250px;  height:300px; background:#00FFFF;}
  #main{min-width:200px; margin-left:250px;  height:300px; background-color:#CC3366;}

 -->

</style>

</head>

<body>
    <div id="wrapper">
        <div id="sideBar">宽度自适应</div>
        <div id="mainer">
             <div id="main">宽度自适应 宽度自适应</div>
        </div>
    </div>
</body>
</html>
上一篇:Oracle Data Guard_ 备库以只读或读写方式打开访问


下一篇:自定义vue2.0全局组件(上篇)