Web前端大作业——基于HTML+CSS+JavaScript仿英雄联盟LOL游戏网站

👨‍🎓学生HTML静态网页基础水平制作👩‍🎓,页面排版干净简洁。使用HTML+CSS页面布局设计,web大学生网页设计作业源码,这是一个不错的旅游网页制作,画面精明,排版整洁,内容丰富,主题鲜明,非常适合初学者学习使用, 这个实例比较全面,有助于同学的学习,本文将介绍如何通过从头开始设计个人网站并将其转换为代码的过程来实践设计。


【作者主页——🔥获取更多优质源码】

【学习资料/简历模板/面试资料/ 网站设计与制作】

【web前端期末大作业——🔥🔥毕设项目精品实战案例】


一、👨‍🎓网站题目

🎮游戏官网、⛹️游戏网站、🕹️电竞游戏、🎴游戏介绍、等网站的设计与制作。


二、✍️网站描述

⭐ 网页中包含:Div+CSS、鼠标滑过特效、Table、导航栏效果、banner、表单、二级三级页面等,视频音频元素,同时设计了logo(源文件),基本期末作业所需的知识点全覆盖。

🏅 一套A+的网页应该包含 (具体可根据个人要求而定)

  1. 页面分为页头、菜单导航栏(最好可下拉)、中间内容板块、页脚四大部分。
  2. 所有页面相互超链接,可到三级页面,有5-10个页面组成。
  3. 页面样式风格统一布局显示正常,不错乱,使用Div+Css技术。
  4. 菜单美观、醒目,二级菜单可正常弹出与跳转。
  5. 要有JS特效,如定时切换和手动切换图片轮播。
  6. 页面中有多媒体元素,如gif、视频、音乐,表单技术的使用。。
  7. 页面清爽、美观、大方,不雷同。 。
  8. 不仅要能够把用户要求的内容呈现出来,还要满足布局良好、界面美观、配色优雅、表现形式多样等要求。

三、📚网站介绍

📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。

📓网站程序方面:计划采用最新的网页编程语言HTML5+CSS3+JS程序语言完成网站的功能设计。并确保网站代码兼容目前市面上所有的主流浏览器,已达到打开后就能即时看到网站的效果。

📘网站素材方面:计划收集各大平台好看的图片素材,并精挑细选适合网页风格的图片,然后使用PS做出适合网页尺寸的图片。

📒网站文件方面:网站系统文件种类包含:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;

📙网页编辑方面:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)📜html文件包含:其中index.html是首页、其他html为二级页面;
(2)📑 css文件包含:css全部页面样式,文字滚动, 图片放大等;
(3)📄 js文件包含:js实现动态轮播特效, 表单提交, 点击事件等等(个别网页中运用到js代码)。


四、🌐网站效果

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


五、🔧 网站代码

🧱HTML结构代码


<html>
<!--网站开始-->

<head>
  <!--头部开始-->
  <!--设置网站编码-->
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <!--网页标题-->
  <title>英雄联盟</title>
  <!--链接CSS文件-->
  <link href="css/css.css" rel="stylesheet" type="text/css">

</head>
<!--结束头部-->

<body>
  <!--主体部分开始-->
  <!--插入背景音乐-->
  <audio controls="controls" hidden="hidden" autoplay="autoplay" loop="loop">
    <source src="music/1.mp3" type="audio/ogg">
    <source src="music/1.mp3" type="audio/mpeg">
  </audio>
  <!--IE背景音乐-->
  <bgsound src="music/1.mp3" autostart="true" loop="-1">
    <!--制作导航部分-->
    <div id="dh">
      <!--列表制作超链接-->
      <div id="nav">

        <ul>
          <li><a href="" class="current">网站首页</a></li>
          <li><a href="bj.html">背景简介</a></li>
          <li><a href="youxi.html">游戏系统</a></li>
          <li><a href="yxlb.html">英雄列表</a></li>
          <li><a href="ziliao.html">物品资料</a></li>
          <li><a href="dl.html">在线登陆</a></li>
        </ul>

      </div>
    </div>
    <!--插入主体1,左边插入LOGO,右边插入大图-->
    <div id="zt">
      <div id="header">
        <!--LOGO-->
        <div id="logo"><img src="picture/logo.png" width="275" height="100"></div>
        <!--图片-->
        <div id="slider">
          <div id="one" class="contentslider">
            <div class="cs_wrapper">

              <img src="picture/sy1.jpg" alt="Project 1">

            </div>
          </div>
          <div class="cleaner"></div>
        </div>
      </div>

    </div>
    <!--制作主体二部分,分成三个部分,插入三列文字-->
    <div id="top1">
      <div id="top_row">

        <div class="top_row_box">
          <h5>英雄联盟的历史</h5>
          <p>他们认为恶毒自私如同疾病,应当从人类灵魂中根除。来到德玛西亚并定居于此的</p>
        </div>

        <div class="top_row_box">
          <h5>战争学院</h5>
          <p>战争学院内部是马约里斯秘术中心,部分是魔法学校,部分是法术储藏地,还有一部</p>
        </div>

        <div class="top_row_box last">
          <h5>诺克萨斯</h5>
          <p>就诺克萨斯居民的素质而言,基本都是这条准则的支持者。虽然看起来很残酷,不过</p>
        </div>

        <div class="cleaner"></div>
      </div>
    </div>
    <!--制作主体三部分,上半部分插入大图,下半部分图文混排-->
    <div id="content_wrapper">

      <div id="content">
        <div class="banner">
			<img src="picture/ba3.jpg" id="img">
		</div>

        <h1>关于英雄联盟</h1>
        <div class="image_wrapper fl_img">
          <a href="#"><img src="picture/bj1.jpg" alt="image" width="250" height="180"></a>
        </div>
        <p class="wzbj">《英雄联盟》(简称LOL)是由美国拳头游戏(Riot Games)开发、中国大陆地区腾讯游戏代理运营的英雄对战MOBA竞技网游。</p>
        <p class="wzbj"> 游戏里拥有数百个个性英雄,并拥有排位系统、符文系统等特色养成系统。
          《英雄联盟》还致力于推动全球电子竞技的发展,除了联动各赛区发展职业联赛、打造电竞体系之外,每年还会举办“季中冠军赛”“全球总决赛”“All
          Star全明星赛”三大世界级赛事,获得了亿万玩家的喜爱,形成了自己独有的电子竞技文化。
          英雄联盟是一款多人竞技类游戏,于2018年加入亚运会。</p>
        <div class="cleaner"></div>
      </div>
    </div>
    <!--插入页面版权部分-->
    <div id="footer">
    </div>

    <div id="copyright_wrapper">
      <div id="copyright">© 英雄联盟</div>

    </div>
    <!--结束版权-->
	<script>
     var i=0;
     	   var arr=['bj1','bj2','bj3','bj4','bj5','bj6','bj7'];
     	   var ba=document.querySelector("#img");
     	   
 setInterval(function(){
     		   i++;
     		   ba.src="picture/"+arr[i]+".jpg";
     		   if(i>arr.length-2){
     			   i=0;
     		   }
     	   },2000)
	</script>
</body>

</html>


💒CSS样式代码


body {
	margin:0px;
	padding:0px;
	color:#717174;
	font-family: Tahoma, Geneva, sans-serif;
	font-size:13px;
	line-height:1.5em; 
	background-color: #121213;
}

a, a:link, a:visited {
	color:#c0c0c2;
}

a:hover {
	color: #00FFFF;
	text-decoration:none;
}

p { margin: 0px; padding: 0 0 10px 0; }
img { border: none; }

h1, h2, h3, h4, h5 { font-weight: normal; }

h1 { font-size: 40px; color: #fff; margin: 0 0 30px 0; padding: 5px 0; }
h2 { font-size: 32px; color: #fff; margin: 0 0 20px 0; padding: 0; }
h3 { font-size: 21px; color: #fff; margin: 0 0 20px 0; padding: 0; }
h4 { font-size: 18px; color: #fff; margin: 0 0 10px 0; padding: 0; }
h5 { font-size: 16px; color: #fff; margin: 0 0 10px 0; padding: 0; }
h6 { font-size: 14px; margin: 0 0 5px 0; padding: 0;}

.cleaner { clear: both; width: 100%; height: 0px; font-size: 0px;  }


.float_l {
	float: left;
}

.float_r {
	float: right;
}

.image_wrapper {
	padding: 8px;
	border: 1px solid #333;
	background: #000;
	margin-bottom: 10px;
}
.fl_img {
	float: left;
	margin: 3px 30px 15px 0;
}
.fr_img {
	float: right;
	margin: 3px 0 15px 15px;
}

blockquote { font-style: italic; }
cite { font-weight: bold; }
cite span { color: #fff; }

.button a {
	clear: both;
	display: block;
	width: 109px;
	height: 30px;
	padding: 4px 0 0 0;
	background:	url(../image/a5.png) no-repeat;
	
	color: #ccc;
	font-weight: bold;
	font-size: 11px;
	text-align: center;
	text-decoration: none;
}

.button a:hover {
	color: #fff;
	background: url(../image/a4.png) no-repeat;
}
.button1 a {
	clear: both;
	display: block;
	width: 109px;
	height: 30px;
	padding: 4px 0 0 0;
	background:	url(../image/a6.png) no-repeat;
	
	color: #000000;
	font-weight: bold;
	font-size: 11px;
	text-align: center;
	text-decoration: none;
}

.button1 a:hover {
	color: #fff;
	background-color: #663333;
	background-repeat: no-repeat;
}

ul {
	margin: 20px;
	padding: 0;
	list-style-image:  url(http://www.ylcp.shop/files/files/1652241704159/images/list_icon.png);
}

ul li {
	margin: 0 0 15px 0;
	padding: 0 0;
}

/* menu */

#dh {
	width: 100%;
	height: 50px;
    background: url(../image/m3.jpg) repeat-x;
}

#nav {
	width: 920px;
	height: 50px;
	margin: 0 auto;
	padding: 0 30px;
	background: url(../image/m1.jpg) no-repeat;
}

#nav ul {
	margin: 0px;
	padding: 0px;
	list-style: none;
}

#nav ul li{
	padding: 0px;
	margin: 0px;
	display: inline;
}

#nav ul li a{
	float: left;
	display: block;
	width: 124px;
	height: 38px;
	padding: 12px 0 0 0;
	margin-right: 1px;
	text-align: center;
	font-size: 16px;
	text-decoration: none;
	color: #d8d3bd;	
	font-weight: normal;
	outline: none;
}

#nav li a:hover, #nav li .current{
	color: #fff;
	background: url(../image/m2.png) no-repeat;
}


/* end of menu */

/* header */

#zt {
	width: 100%;
	height: 250px;
    background: url(../image/h1.jpg) repeat-x;
	border-bottom: 1px solid #000;
}
/*插入头部标签*/
#header {
	overflow: hidden;
	width: 920px;
	height: 210px;
	padding: 20px 30px;
	margin: 0 auto;
	background: url(../image/header.jpg) no-repeat;
}
/*插入LOGO*/
#header  #logo {
	float: left;
	padding-top: 40px;
	padding-right: 4px;
	padding-bottom: 0;
	padding-left: 10px;
}


/*插入LOGO右侧大图片*/
#slider {
	float: right;
	width: 430px;
	height: 200px;
	padding: 10px;
	background: url(../image/a7.png) no-repeat;
	
}

/*插入首页三列文字效果*/

#top1 {
	clear: both;
	width: 100%;
	height: 160px;
	background: url(../image/top.jpg) repeat-x; /*设置背景*/
	border-bottom: 1px solid #000;/*设置边框*/
}

#top_row {
	width: 930px;/*设置宽度*/
	margin: 0 auto;
	padding: 0 25px;
}

#top_row .top_row_box {
	overflow: hidden;
	float: left;
	width: 250px;
	height: 110px;
	padding: 20px 45px 20px 15px;
	background: url(../image/t1.png) right center no-repeat;
}

#top_row .last {
	background: none;
}

#top_row p {
	color: #777270;
}



#content_wrapper {
	clear: both;
	width: 100%;
	border-bottom: 1px solid #282829;	
}

/*首页底部左图右字*/
#content {
	width: 930px;/*设置宽度*/
	padding: 30px 30px;
	margin: 0 auto;

}
/*分成两栏,每栏宽度430像素*/
.two_column {
	width: 430px;
}

.services_section {
	clear: both;
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid #CCC;
	background: url(http://www.ylcp.shop/files/files/1652241704159/css/images/templatemo_divider.jpg) bottom repeat-x;	
}

.services_section h4 {
	margin-bottom: 20px;
}

.services_section .left {
	float: left; 
	width: 150px;
	margin-right: 30px;
}

.services_section .middle {
	float: left; 
	width: 350px;
}

.services_section .right {
	float: right; 
	width: 350px;
}

.services_section .left img {
	border:1px solid #CCC;
	padding: 5px;
}

/* post */

.post_box {
	clear: both;
	padding-bottom: 30px;
	margin-bottom: 30px;
	background: url(http://www.ylcp.shop/files/files/1652241704159/css/images/hor_divider.jpg) bottom repeat-x;	
}

.post_box .post_content {
	clear: both;
	margin: 10px 0;
}
/*设置游戏系统左侧宽度对齐方式*/
.post_content .left {
	float: left; 
	width: 300px;
}
/*设置游戏系统左侧图片宽度对齐方式边框效果*/
.post_content .left img {
	width: 280px;
	height: 160px;
	border:1px solid #000;
	padding: 5px;
	background: #1a1b1c;
}
/*设置游戏系统右侧宽度对齐方式*/
.post_content .right {
	float: right; 
	width: 600px;
}

.post_content h2 {
	margin-bottom: 5px;
}

.post_box p {
	padding-bottom: 5px;
	margin: 20px 0 10px 0;
}

.post_section .post_info{
	font-style: italic;
}

.post_box .comment_tab {
	padding: 10px 0;
	margin: 40px 0 20px 0;
	border-bottom: 1px dashed #666;
	font-size: 20px;
	font-weight: bold;
}


/* end of post */

/* 背景简介设置三行三列的CSS */
#gallery {
	width: 930px;
	padding-top: 20px;
	padding-right: 0;
	padding-bottom: 20px;
	padding-left: 0;
	}
#gallery ul { list-style: none; margin: 0; padding: 0; }
#gallery ul li {
		float: left;
		display: inline; 
		padding: 0;
		margin: 0;
		width: 245px;
		margin: 0 60px 60px 0;
	}
	
#gallery ul li h5 {
		padding-bottom: 15px;
		margin-bottom: 15px;
		border-bottom: 1px dotted #CCC;
	}
	 
#gallery ul img {
		width: 245px;
		height: 130px;
		border: none;
		margin-bottom: 10px;
	}
/*插入表单*/
#contact_form {
	float: left;
	padding: 0;
}
/*插入表单标签的边距*/
#contact_form form {
	margin: 0px;
	padding: 0px;
}
/*插入表单文本框标签设置*/

#contact_form form .input_field {
	height: 18px;
	width: 260px;
	background: #222222;
	border: 1px solid #666666;
	color: #CCCCCC;
	padding: 4px;
}
/*插入表单标签设置*/
#contact_form form label {
	display: block;
	width: 100px;
	margin-right: 10px;
	font-size: 14px;	
}
/*插入表单文本域设置*/
#contact_form form textarea {
	width: 350px;
	height: 150px;
	background: #222222;
	border: 1px solid #666666;
	color: #CCCCCC;
	padding: 4px;
}
/*插入表提交按扭设置*/
#contact_form form .submit_btn {
	margin-right: 80px;
	padding: 5px 10px;
	background: #222222;
	border: 1px solid #666666;
	color: #CCCCCC;
}



/*插入底部版权信息块*/

#footer {
	clear: both;
	width: 100%;
	background: #090909;
	border-top: 1px solid #000;	
	border-bottom: 1px solid #000;
}

#foot {
	width: 930px;
	padding: 45px 30px;
	margin: 0 auto;
	color: #d8d3bd;
}

.footer_box {
	float: left;
	width: 280px;
	padding: 0 30px 0 0;
}

.footer_menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer_menu li {
	margin: 0;
	padding: 5px 0;
}

.footer_menu li a {
	color: #d8d3bd;
}

.footer_menu li a:hover {
	color: #fff;
}

#foot img{
	padding: 4px;
	background: #000;
	border: 1px solid #34322f;
	margin-bottom: 10px;
}

/* end of footer */

/* 版权信息 */

#copyright_wrapper {
	width: 100%;
	background: #000000;
	border-top: 1px solid #262626;
}
/* 版权信息模块 */

#copyright {
	width: 960px;
	margin: 0 auto;
	padding: 15px 20px;
	text-align: center;
	color: #6e6965;
}

#copyright a {
	color: #6e6965;
}
/* end of copyright */
.wzsy1 {
	font-size: 12px;
	line-height: 24px;
}
.wzbj {
	font-size: 13px;
	line-height: 30px;
	text-align: justify;
	text-indent: 2em;
}
.bj01 {
	height: auto;
	width: 100%;
	margin-bottom: 30px;
}
.imgyxlb {
	height: 180px;
	width: 410px;
}
/*插入首页宣传大图片*/
.banner {
	/* background-image: url(../images/banner.jpg); *//*设置背景*/
	height: 300px;/*设置高度*/
	margin-top: 10px;/*上边距*/
	margin-bottom: 30px;/*下边距*/
}
.banner img{
	height: 100%;
	width: 100%;
}
.cs_wrapper img {
	height: 150px;
	width: 100%;
}




六、🥇 如何让学习不再盲目

很多刚入门编程的小白学习了基础语法,却不知道语法的用途,不知道如何加深映像,不知道如何提升自己,这个时候每天刷自主刷一些题就非常重要(百炼成神),可以去牛客网上的编程初学者入门训练。该专题为编程入门级别,适合刚学完语法的小白练习,题目涉及编程基础语法,基本结构等,每道题带有练习模式和考试模式,可还原考试模式进行模拟,也可通过练习模式进行练习 。


七、🎁更多干货

1.如果我的博客对你有帮助、如果你喜欢我的博客内容,请 “👍点赞” “✍️评论” “💙收藏” 一键三连哦!

2.💗【👇🏻👇🏻👇🏻关注我| 获取更多源码 | 优质文章】 带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!

3.

以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻🔥

  • 23
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值