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

类型《网站设计与网页制》课程设计.docx

  • 文档编号:23079357
  • 上传时间:2023-04-30
  • 格式:DOCX
  • 页数:27
  • 大小:6.08MB

4.2.轮播器模块

4.2.1.模块设计思路

轮播器的主要功能是让多张图片能够按照一定的时间间隔进行轮播展示,此功能可以使网页空间得以节省,并且使网页看起来更加美观。

轮播器主要运用css代码来实现的,大致思路是让想要轮播的几张图片排成一列,创建一个图框,只有这个图框中可以显示图片,其他区域图片将会隐藏,之后只要将图片设计成自动左右移动便能达到想要的效果。

4.2.2.模块界面截图

此为开始的样子,它每隔一段时间便会切换到下一张,右上的九个数字对应九个图片,点击可以直接跳到对应图片。

将鼠标放于数字上不动,数字会呈现红色,此时图片不再轮播,将会静止在此页,这是为了方便浏览者阅读观看。

切换后的图片:

4.2.3.模块实现主要代码

html,body{height:

100%}

#frame{

position:

absolute;

margin-top:

80px;

margin-left:

380px;

width:

500px;

height:

500px;

overflow:

hidden;

border-radius:

5px;

}

#photosimg{

float:

left;

width:

500px;

height:

500px;

}

#photos{

position:

absolute;z-index:

9px;

width:

calc(500px*9);

}

.play{

animation:

ma25sease-outinfinitealternate;

}

@keyframesma{

0%,15%{margin-left:

0px;}

25%,20%{margin-left:

-500px;}

35%,40%{margin-left:

-1000px;}

45%,50%{margin-left:

-1500px;}

55%,60%{margin-left:

-2000px;}

65%,70%{margin-left:

-2500px;}

75%,80%{margin-left:

-3000px;}

85%,90%{margin-left:

-3500px;}

95%,100%{margin-left:

-4000px;}

}

.num{

position:

absolute;z-index:

20;

display:

inline-block;

right:

0px;top:

0px;

border-radius:

100%;

background:

#00F;

width:

25px;height:

25px;

line-height:

25px;

cursor:

pointer;

color:

#FFF;

text-align:

center;

opacity:

0.8;

}

.num:

hover{background:

#F00;}

.num:

hover,#photos:

hover{animation-play-state:

paused;}

.num:

nth-child

(2){margin-right:

30px}

.num:

nth-child(3){margin-right:

60px}

.num:

nth-child(4){margin-right:

90px}

.num:

nth-child(5){margin-right:

120px}

.num:

nth-child(6){margin-right:

150px}

.num:

nth-child(7){margin-right:

180px}

.num:

nth-child(8){margin-right:

210px}

.num:

nth-child(9){margin-right:

240px}

#a1:

hover~#photos{animation:

ma1.5sease-outforwards;}

#a2:

hover~#photos{animation:

ma2.5sease-outforwards;}

#a3:

hover~#photos{animation:

ma3.5sease-outforwards;}

#a4:

hover~#photos{animation:

ma4.5sease-outforwards;}

#a5:

hover~#photos{animation:

ma5.5sease-outforwards;}

#a6:

hover~#photos{animation:

ma6.5sease-outforwards;}

#a7:

hover~#photos{animation:

ma7.5sease-outforwards;}

#a8:

hover~#photos{animation:

ma8.5sease-outforwards;}

#a9:

hover~#photos{animation:

ma9.5sease-outforwards;}

@keyframesma1{0%{margin-left:

-2000px;}100%{margin-left:

-0px;}}

@keyframesma2{0%{margin-left:

-2000px;}100%{margin-left:

-500px;}}

@keyframesma3{100%{margin-left:

-1000px;}}

@keyframesma4{100%{margin-left:

-1500px;}}

@keyframesma5{100%{margin-left:

-2000px;}}

@keyframesma6{100%{margin-left:

-2500px;}}

@keyframesma7{100%{margin-left:

-3000px;}}

@keyframesma8{100%{margin-left:

-3500px;}}

@keyframesma9{100%{margin-left:

-4000px;}}

1

2

3

4

5

6

7

8

9

4.3.内容模块

4.3.1.模块设计思路

内容模块我负责其中两个的代码编写,主要是首页和英灵信息两栏。

首页为了简洁做了很多修改,大体保留一张全屏高清大图,即游戏宣传海报。

下面是一个视频,即游戏宣传pv,在下面则是页面尾部;英灵信息一栏则是一张图片其中有人物信息的链接,之下是对英灵的解析,再之下是轮播器,最后是网页尾部。

4.3.2.模块界面截图

首页:

图中的二维码为游戏下载地址:

游戏宣传视频:

英灵信息板块:

上图文字部分为人物信息链接:

点开后:

英灵这一名词在游戏中的含义:

轮播器:

另外网页尾部附有一个哔哩哔哩的链接

点开后:

4.3.3.模块实现主要代码

首页一栏的所有代码:

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

//www.w3.org/1999/xhtml">

欢迎来到FGO的世界!</p><p>

html,body{height:

100%}

.div1{background-color:

#800080;width:

100%;height:

10%}

.div2{background-color:

#FFF;width:

100%;height:

105%}

.div1li{float:

left;color:

#FFF;margin-left:

50px;margin-right:

50px;padding-top:

2px}

.div1ul{list-style-type:

none;margin:

0px;padding:

0px;margin-top:

1px}

.div2img{width:

100%;height:

105%}

.div3{background-color:

#000040;width:

100%;height:

78%;margin:

25px}

.div4{background-color:

#000040;width:

100%;height:

15%;margin-top:

0px}

.div5{background-color:

#000040;width:

10%;height:

25%}

.div6{background-color:

#000040;float:

left;width:

90%;height:

25%}

.div7{background-color:

#000040;float:

left;width:

50%;height:

25%}

.div8{background-color:

#000040;float:

left;width:

50%;height:

25%}

.div8p{font-family:

"楷体";font-size:

20px;}

.photo{margin-top:

-45px;margin-left:

100px}

#b1{font-size:

40px;font-family:

"华文琥珀";color:

#01139b}

#b2{font-size:

15px;color:

#FFF;margin-top:

-25px}

a:

visited{text-decoration:

none;color:

#c1b477}

a:

link{text-decoration:

none;color:

#c1b477}

a:

active{text-decoration:

none;color:

#000040}

a:

hover{text-decoration:

none;color:

#800080}

-2px;width=600px;height:

520px;background:

URL(sptp1.jpg)">

604▏

本游戏由哔哩哔哩代理|

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

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

特殊限制:

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

关 键  词:
网站设计与网页制 网站 设计 网页 课程设计
提示  冰豆网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:《网站设计与网页制》课程设计.docx
链接地址:https://www.bdocx.com/doc/23079357.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2022 冰点文档网站版权所有

经营许可证编号:鄂ICP备2022015515号-1

收起
展开