CSS双飞翼布局

双飞翼布局

CSS双飞翼布局_第1张图片
Paste_Image.png

  
main
aside-1
aside-2
.layout:after{
  content: "";
  display: block;
  clear: both;
}
.layout{
  padding-left: 50px;
  padding-right: 50px; 
}
#main{
  width: 100%;
  float: left;
}
#aside-1{
  width: 80px;
  height: 300px;
  background: #aa0;
  float: left;
  margin-left: -100%;
}
#aside-2{
  width: 100px;
  height: 200px;
  background: #0aa;
  float: left;
  margin-left: -100px;
}
.wrap{
  margin-left: 80px;
  margin-right: 100px;
  background: #aaa;
  height: 500px;
}

你可能感兴趣的:(CSS双飞翼布局)