“穿搭速递”首页制作
2020年11月16日星期一
1、掌握无序列表、有序列表及定义列表
2、熟悉列表的嵌套
3、掌握超链接标记
4、掌握链接伪类
5、能够使用无序列表、有序列表及定义列表对页面进行布局
6、学会使用链接伪类控制页面中超链接的样式
1、按照特定要求制作一个网页
2、使用Dreamweaver 、火狐浏览器制作
3、上交的文件,以“学号+姓名”的形式
1、建立站点
(1)创建网站根目录
在计算机本地磁盘E盘中新建一个文件夹作为网站根目录,命名为“穿搭速递”。
(2)在根目录下新建文件
在根目录下新建images和css文件夹,分别用于存放网站所需要的图像和CSS样式表文件。
(3)新建站点
打开Dreamweaver工具,新建站点,并命名为“青春儿童摄影网”,然后浏览并选择站点根目录的存储位置,并保存。
2、页面布局
将页面制作分为“导航”模块、“主体”模块、“版权信息”模块。其中,主体模块又可以分为“banner”模块、“精品展示”模块、“潮流前沿”模块三部分
3、制作“头部”导航模块
“导航”模块背景通栏显示,需要在最外层嵌套一个大盒子。另外,导航有LOGO和六个子栏目构成,可以通过无序列表
4、制作“banner”和“精品展示”模块
“banner”模块结构由一张图片构成。“精品展示”,模块由一个大盒子构成,主要包括三部分,分别由三队
5、制作“潮流前沿”模块
“潮流前沿”模块分为标题和潮流两部分。其中,标题由
6、制作“版权信息”模块
“版权信息”模块通栏显示,整体上由一个
标记定义。“版权信息”模块通栏显示,需要设置宽度100%。另外,版权信息内容为微软雅黑、14px、白色文本且居中对齐显示,需要使用CSS文本外观属性来定义。
HTML
穿搭速递
Copyright © 2006-2016 CHAOLIUFUSHIcom, All rights reserved.
2001-2018,版权所有 潮流服饰 85CP备13385453
CSS
/* CSS Document */
*{margin:0; padding:0;list-style: none;}
body{background:#fff9ed; font-family:"微软雅黑"; font-size:14px; }
a:link,a:visited{ text-decoration:none; color:#fff; font-size:16px;}
#header{
width:100%;
height:128px;
background:url(../images/head_bg.jpg) repeat-x;
border-bottom:3px solid #d5d5d5;}
.nav{
width:980px;
margin:0 auto;}
li{float:left;}
li a{
display:inline-block;
height:91px;
width:119px;
text-align:center;
line-height:70px;}
li a:hover{background:url(../images/xuanfu.png)center center;}
#content{
width:980px;
margin:0 auto;}
.style_bg{
width:908px;
height:330px;
background:#ec6e47;
padding:10px 36px 5px; }
.style{
width:892px;
height:314px;
background:#fff;
padding:8px 10px 8px 6px;}
.style dl{
width:279px;
height:313px;
float:left;
margin-left:4px;}
.style .third{width:322px;}
.style dt,.style dd{float:left;}
.style .left1,.style .left3,.style .center1,.style .center3{width:162px;}
.style .left2,.style .left4,.style .center2,.style .center4,.style .right2{width:117px;}
.style .left1,.style .left2,.style .center1,.style .center2{ margin-bottom:8px;}
.style .left1{
height:169px;
background:url(../images/pic01.jpg) no-repeat; }
.style .left2{
height:169px;
line-height:169px; }
.style .left3{
height:137px;
background:url(../images/pic02.jpg) no-repeat;}
.style .left4{
height:137px;
line-height:137px;}
.style .center1{
height:117px;
background:url(../images/pic03.jpg) no-repeat;}
.style .center2{
height:117px;
line-height:117px;}
.style .center3{
height:188px;
background:url(../images/pic04.jpg) no-repeat;}
.style .center4{
height:188px;
line-height:188px;}
.style .right1{
width:205px;
height:314px;
background:url(../images/pic05.jpg) no-repeat;}
.style .right2{
height:314px;
line-height:314px;}
.style a{
display:block;
background:#242424;
text-align:center;}
.style a:hover{ background:#ea6c46;}
h2{
width:259px;
height:45px;
background:#ea6c46;
font-size:20px;
font-weight:100;
line-height:45px;
text-align:center;
color:#fff;
margin-top:80px;}
.current{
width:958px;
height:342px;
background:#fff;
border:1px solid #dcd2ba;
padding:13px 0 0 20px;}
.current dl{
width:229px;
height:330px;
border:1px solid #dcd2ba;
float: left;
margin-right:5px;}
.current dt{
width:229px;
height:212px;
border-bottom:1px solid #dcd2ba; }
.current01{
width:229px;
height:66px;
background:#fff;
line-height:66px;
color:#7a7a7a;
font-size:22px;
text-align:center;}
.current02{
width:140px;
height:38px;
background:#f3734e url(../images/gouwu.jpg) left center no-repeat;
margin:0 14px;
line-height:38px;
padding-left:60px;
color:#fff;}
.match_1{background:url(../images/match01.jpg) center center no-repeat;}
.match_2{background:url(../images/match02.jpg) center center no-repeat;}
.match_3{background:url(../images/match03.jpg) center center no-repeat;}
.match_4{background:url(../images/match04.jpg) center center no-repeat;}
.current a{display:inline-block; width:180px; height:38px;}
#footer{
width:100%;
height:103px;
background:#020202;
color:#fff;
line-height:26px;
text-align:center;
padding-top:50px;
margin-top:65px;}
1、通过该项目的制作,认真体会列表和超链接的用法,能够熟练地运用列表与超链接组织页面元素。。
2、制作项目时,熟练掌握CSS控制列表和超链接,并注意清除列表和超链接的默认样式。
3、认真体会到悬停的制作,以及学习到超链接伪状态。
4、了解到使用链接的4种伪状态,通常按照a:link、a:visted、a:hover、和a:active
5、清除知道了除文本样式之外,链接伪类还常常用于控制超链接的背景、边框等样式。
6、明白了在网页种,不仅可以为文本创建超链接,还可以为图像、表格、音频、视频等网页元素添加超链接。
7、在添加超链接时,如果暂时没有确定链接的目标,通常将 < a > 标记的href属性值定义为“#”(即 href=“#”),表示改链接暂时为一个空链接。