首页 > Web开发 > 详细

css三列布局

时间:2016-04-04 17:58:17      阅读:187      评论:0      收藏:0      [点我收藏+]

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
body{
margin:0;
padding:0;
font-size:30px;
font-weight:bold
}
div{
text-align:center;
line-height: 50px
}
.left{
width:200px;
height:600px;
background: #ccc;
position: absolute;
left:0px;
top:0px;
}
.main{
margin:0 310px 0 210px;
height:600px;
background: #9cf;

}
.right{
width:300px;
height:600px;
background:#fcc;
position: absolute;
right: 0px;
top:0px;
}
</style>
</head>
<body>
<div class="left">200px</div>
<div class="main">lerm</div>
<div class="right">300px</div>
</doby>
</html>

css三列布局

原文:http://www.cnblogs.com/xyw521520/p/5352426.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!