600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > Web前端大作业——基于HTML+CSS+JavaScript仿英雄联盟LOL游戏网站

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

时间:2023-12-07 11:45:34

相关推荐

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

🎉精彩专栏推荐👇🏻👇🏻👇🏻

✍️ 作者简介: 一个热爱把逻辑思维转变为代码的技术博主

💂 作者主页: 【主页——🚀获取更多优质源码】

🎓 web前端期末大作业: 【📚毕设项目精品实战案例 (1000套) 】

🧡 程序员有趣的告白方式:【💌HTML七夕情人节表白网页制作 (110套) 】

🌎超炫酷的Echarts大屏可视化源码:【🔰 echarts大屏展示大数据平台可视化(150套) 】

🎁 免费且实用的WEB前端学习指南: 【📂web前端零基础到高级学习视频教程 120G干货分享】

🥇 关于作者: 历任研发工程师,技术组长,教学总监;曾于、两度荣获CSDN年度十大博客之星。 十载寒冰,难凉热血;多年过去,历经变迁,物是人非。 然而,对于技术的探索和追求从未停歇。 💪坚持原创,热衷分享,初心未改,继往开来!

📂文章目录

一、👨‍🎓网站题目二、✍️网站描述三、📚网站介绍四、🌐网站效果五、🔧 网站代码🧱HTML结构代码💒CSS样式代码六、🥇 如何让学习不再盲目七、🎁更多干货

一、👨‍🎓网站题目

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

二、✍️网站描述

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

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

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

三、📚网站介绍

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

📓网站程序方面:计划采用最新的网页编程语言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"> 游戏里拥有数百个个性英雄,并拥有排位系统、符文系统等特色养成系统。《英雄联盟》还致力于推动全球电子竞技的发展,除了联动各赛区发展职业联赛、打造电竞体系之外,每年还会举办“季中冠军赛”“全球总决赛”“AllStar全明星赛”三大世界级赛事,获得了亿万玩家的喜爱,形成了自己独有的电子竞技文化。英雄联盟是一款多人竞技类游戏,于加入亚运会。</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.

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

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。