书签 分享 收藏 举报 版权申诉 / 90

类型网页制作实验指导书xin资料.docx

  • 文档编号:17878492
  • 上传时间:2023-08-04
  • 格式:DOCX
  • 页数:90
  • 大小:3.43MB

3.定义“首页”的CSS样式。

(1)新建CSS文件,保存在style文件夹中,命名为style_homepage.css。

(2)将文档窗口切换到index.html,单击CSS面板上的“附加样式表”按钮,将style_homepage.css作为外部样式表链接到index.html。

(3)在style_homepage.css文件中定义index.html的样式。

*{

margin:

0px;

padding:

0px;

}

body{

font:

0.75em/1.5"宋体";

color:

#dee3c1;

background:

#134113url(../images/bg_body.jpg);

text-align:

center;

padding:

30px0px;

}

h1{

font-size:

300%;

}

h2{

font-size:

130%;

}

p,h2{

margin:

0.8em0;

}

a{

color:

#dee3c1;

text-decoration:

none;

}

a:

hover{

text-decoration:

underline;

}

#container{

width:

750px;

margin:

auto;

background:

url(../images/bg_container.jpg);

text-align:

left;

}

#header{

height:

80px;

padding:

150px0px0px300px;

background:

url(../images/bg_header.jpg)no-repeatlefttop;

}

#content{

padding:

0px100px30px100px;

}

#contentp{

padding-bottom:

50px;

background:

url(../images/bg_divide.jpg)no-repeatcenterbottom;

}

#footer{

height:

128px;

padding-top:

30px;

background:

url(../images/bg_footer.jpg)no-repeatleftbottom;

text-align:

center;

}

实验五格式化文本

一、实验目的

1.掌握文本样式的设置方法。

2.掌握段落样式的设置方法。

3.掌握列表样式的设置方法。

4.掌握超链接文字样式的设置方法。

二、实验内容

定义“唯存教育--探究学习”栏目中“article01.html”网页的样式。

 

三、操作步骤

1.创建站点。

(1)将“article01”文件夹中的myweb文件夹复制到D盘;

(2)启动Dreamweaver,使用“站点|新建站点”命令创建站点。

2.打开article01.html,定义其逻辑结构。

惟存教育--探究学习

返回首页

如何构建高效的webquest

杨淑莲华南师范大学教育技术研究所

……

Copyright©BEING,BeingLab.AllRightsReserved

版权所有惟存教育实验室

3.定义“article01.html”网页的CSS样式。

*{

margin:

0;

padding:

0;

}

body{

font:

0.75em"宋体";

background:

#E0E0E0url(images/mygrd.gif);

text-align:

center;

}

#container{

margin:

auto;

width:

760px;

text-align:

left;

position:

relative;

}

p,li{

line-height:

1.8;

}

h1{

font-size:

130%;

font-weight:

normal;

}

h2{

font-size:

180%;

text-align:

center;

}

h3{

font-size:

130%;

color:

#660000;

}

h4{

font-size:

110%;

}

h2,h3,h4{

margin:

0.8em0;

}

table{

margin:

0.8emauto;

border-collapse:

collapse;

}

td,th{

padding:

5px15px;

border:

1pxsolid#000000;

text-align:

center;

}

a{

color:

#000000;

text-decoration:

none;

}

a:

hover{

color:

#000000;

text-decoration:

underline;

}

#header{

border-bottom:

5pxsolid#666666;

padding:

30px02px5px;

}

#headerp.goback{

注意:

这个以及下面几个样式都使用的是类选择器,需要在

上标识class=”goback”。

position:

absolute;

right:

10px;

top:

20px;

}

#headerp.gobacka{

text-decoration:

none;

display:

block;

width:

7em;

height:

2em;

line-height:

2em;

border:

1pxsolid#666666;

background-color:

#cccccc;

text-align:

center;

}

#headerp.gobacka:

hover{

color:

#FFFFFF;

background-color:

#000000;

}

#content{

padding:

30px;

}

#contentp{

text-indent:

2em;

}

注意:

这个样式使用的是类选择器,需要在

上标识class=”center”。

#contentp.center{

text-indent:

0;

text-align:

center;

}

注意:

这个以及下面几个样式都使用的是类选择器,需要在

上标识class=”pic”。

#contentp.picimg{

display:

block;

}

#contentp.pic{

float:

right;

text-align:

center;

margin-bottom:

10px;

}

#contentul{

margin-left:

3em;

}

#footer{

text-align:

center;

padding:

20px0px;

border-top:

1pxsolid#666666;

}

实验六应用背景图像

一、实验目的

1.掌握CSS背景(background)属性。

2.掌握设置背景图像位置的方法。

3.掌握使用背景图像替换文本的方法。

4.掌握使用背景图像制作圆角框的方法。

二、实验内容

1.制作圆角框。

2.制作泡泡俱乐部首页。

三、操作步骤

1.制作圆角框。

(1)创建站点。

(2)打开inf.html,创建内部样式表,内容如下。

*{

margin:

0;

padding:

0;

}

body{

font:

0.75em/1.5"宋体";

margin:

20px0px0px20px;

}

a{

color:

#000000;

text-decoration:

none;

}

#bo

举报
举报
版权申诉
版权申诉
word格式文档无特别注明外均可编辑修改;预览文档经过压缩,下载后原文更清晰! 立即下载
配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
网页 制作 实验 指导书 xin 资料
提示  冰点文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:网页制作实验指导书xin资料.docx
链接地址:https://www.bingdoc.com/p-17878492.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2


收起
展开