一、两栏布局
1、清样式、设置html高度
*{
margin:0;
padding:0;
}
html,body{
height:100%;
}
2、设置两个div
方案1:margin-left
<style>
.box1{
width:200px;
height:100%;
background:red;
float:left;
}
.box2{
height:100%;
background:yellow;
margin-left:200px;
}
</style>
<body>
<div class