您的位置:首页 > Web前端 > CSS

HTML和CSS经典布局5

2013-11-12 16:29 435 查看
如下图:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style>
#content {
overflow: hidden;
}
.column-left {
float: left;
width: 200px;
min-height: 500px;
}
.column-right {
float: right;
width: 200px;
min-height: 500px;
}
.column-middle {
margin: 25px 225px;
min-height: 500px;
}
.busy {
position: fixed;
z-index: 1;
width: 100%;
height: 100%;
background-color: rgba(100, 100, 100, 0.5);
top: 0px;
left: 0px;
}
.busy span {
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 100px;
height: 60px;
margin-left: -50px;
margin-top: -30px;
background-color: #ffffff;
border: 2px solid #444444;
text-align: center;
line-height: 60px;
border-radius: 50px;
}
</style>
</head>
<body>
<div id="header" style="height: 50px; background: blue;">

</div>
<div id="content">
<div class="column-left" style="background-color: purple;">

</div>
<div class="column-right" style="background-color: yellow;">

</div>
<div class="column-middle" style="background-color: pink;">

</div>
</div>
<div class="busy">
<span>
Loading...
</span>
</div>
</body>
</html>


View Code

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: