首页 > Web开发 > 详细

网页布局

时间:2019-03-28 20:37:52      阅读:182      评论:0      收藏:0      [点我收藏+]

网页链接:file:///C:/Users/Administrator/Desktop/%E7%BD%91%E9%A1%B5.html?__hbt=1553775743247

码云代码链接:https://gitee.com/nimaji/codes/2y6jcfqr785sobukgp41t37

技术分享图片

技术分享图片

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Layout</title>
<style>
body {margin: 0; padding: 0;}
.Header, .Footer {height: 100px; background-color: #369;}
.Left, .Right {
position: absolute;
top: 100px;
width: 100px;
height: 300px;
background-color: pink;
}
.Left {left: 0;}
.Right {right: 0;}
.Cont {margin: 0 100px;}
.con1, .con2 {height: 150px;}
.con1 {background-color: silver;}
.con2 {background-color: slateGrey;}
</style>
</head>
<body>
<div class="Header">Header</div>
<div class="Left">Left</div>
<div class="Cont">
<div class="con1">con1</div>
<div class="con2">con2</div>
</div>
<div class="Right">Right</div>
<div class="Footer">Footer</div>
</body>
</html>

 

网页布局

原文:https://www.cnblogs.com/nimaji/p/10617412.html

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