吾爱乐享
个人学习网站

php学习之div+css布局设计排版(六)

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8" />

<title>网页标题</title>

<style type="text/css">

.box {width:960px;border:1px solid red;margin:0px auto;}

.box .header {width:100%;height:90px;background:yellow;}

.box .header .logo {width:200px;height:90px;background:pink;}

.box .header .ads {width:600px;height:90px;background:green;}

.box .header .tel {width:160px;height:90px;background:red;}

.box .nav {width:100%; height:60px;background:blue;}

.box .content {width:100%;height:400px;background:red;}

.box .content .con-left {width:30%;height:400px;background:green;}

.box .content .con-center {width:30%;height:400px;background:blue;}

.box .content .con-right {width:40%;height:400px;background:orange;}

.box .content .top {width:100%;height:200px;border:1px solid yellow;}

.box .content .con-c-left {width:49%;height:200px;border:1px solid red;}

.box .content .con-c-right {width:49%;height:200px;border:1px solid pink;}

.box .footer {width:100%;height:120px;background:gray;}

.left {float:left;}

.right {float:right;}

.clear {clear:both;}

</style>

</head>

<body>

<div class="box">

<div class="header">

<div class="logo left"></div>

<div class="ads left"></div>

<div class="tel right"></div>

</div>

<div class="nav"></div>

<div class="content">

<div class="con-left left">

<div class="top"></div>

<div class="con-c-left left"></div>

<div class="con-c-right left"></div>

</div>

<div class="con-center left">

<div class="top"></div>

<div class="con-c-left left"></div>

<div class="con-c-right left"></div>

</div>

<div class="con-right left"></div>




</div>

<div class="footer"></div>

</div>

</body>

</html>
赞(0) 打赏
未经允许不得转载:吾爱乐享 » php学习之div+css布局设计排版(六)

评论 抢沙发

评论前必须登录!

 

推荐免费资源共享,个人经验总结学习

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏