首页 > Web开发 > 详细

CSS+div左中右经典布局之(五)

时间:2017-10-19 00:37:56      阅读:344      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>16-2</title>
</head>
<style type="text/css">
body{
    margin:0px;
    padding: 0px;
}
#contain{
    margin:0px;
    padding: 0px;
}
#left{
    border:1px #f00 solid;
    width:190px;
    top:0px;
    left: 0px;
    position:absolute;
    height: 500px;
    background-color: #afdcff;
}
#middle{
    border:1px #f00 solid;
    height:500px;
    position:relative;
    margin:auto 190px auto 190px;
    background-color: #e9fbff;
}
#right{
    border: 1px #f00 solid;
    width:190px;
    top:0px;
    right:0px;
    position: absolute;
    height: 500px;
    background-color: #f8e5a9;
}
#footer{
    border: 1px #f00 solid;
    position: relative;
    width:100%;
    height:75px;
    background-color: #b0cfff;
}
</style>
<body>
<div id="contain">
    <div id="left"></div>
    <div id="middle"></div>
    <div id="right"></div>
    <div id="footer"></div>
</div>
</body>
</html>

技术分享

CSS+div左中右经典布局之(五)

原文:http://www.cnblogs.com/yanmengdi/p/7690012.html

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