网页布局代码ppt.ppt

上传人:本田雅阁 文档编号:2159520 上传时间:2019-02-24 格式:PPT 页数:23 大小:2.48MB
返回 下载 相关 举报
网页布局代码ppt.ppt_第1页
第1页 / 共23页
网页布局代码ppt.ppt_第2页
第2页 / 共23页
网页布局代码ppt.ppt_第3页
第3页 / 共23页
亲,该文档总共23页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《网页布局代码ppt.ppt》由会员分享,可在线阅读,更多相关《网页布局代码ppt.ppt(23页珍藏版)》请在三一文库上搜索。

1、,任务思路,任务一、一行三列布局布局。,要求:根据设计稿完成网页布局,要设计三个层。,一、思路,此网页为三行一列结构,先设计HTML部分,再根据各层次高度设计样式。,二、HTML部分,三、CSS部分代码,#main margin:10px auto; width:960px; ,#top height:560px; background:#0290D8; #middle height:57px; background:#9ECBEA; ,#bottom height:20px; background:#5EC8FF; ,任务二、三行两列布局 。,要求:根据设计稿完成网页布局,需设计五个层 。,

2、一、思路,此网页为三行二列结构,top层中有banner和links两层,middle层中有左右两层。,二、HTML部分,三、CSS部分代码,#main margin:0px auto; width:990px; ,#top #banner height:120px; background:#F85380; #links height:100px; background:#F5F5F5; ,#middle background:#9ECBEA; #leftbar height:600px; width:770px; float:left; background:#F85380; #rightb

3、ar height:600px; width:190px; float:right; background:#B20000; ,#bottom height:110px; clear:both; background:#EAEAEA; ,任务三、三行三列布局。,要求:根据设计稿完成网页布局,需设计9个层。,一、思路,此网页为三行三列结构,顶部有banner,links和others三个层,中部有left,center,right三个层,底端有guide,list和address三个层。,二、HTML部分,三、CSS部分代码,#main margin:0px auto; width:990px;

4、 ,#top #banner height:100px; background:#1B94E5; #links height:90px; background:#97E8F9; #others height:80px; background:#FF9D1C; ,#middlebackground:#9ECBEA; #leftbarheight:600px; width:230px; float:left; background:#0764FF; #centerbarheight:600px; width:500px; margin-left:20px; float:left; background:#F85380; #rightbarheight:600px; width:220px; float:right; background:#F96D0C; ,#bottomclear:both; #address height:50px; background:#656565; #list height:30px; background:#F5DE36; #guide height:140px; background:#034FC9; ,再见!,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1