HTML期末大作业~基于HTML+CSS+JavaScript腾讯游戏官网设计与实现
关于HTML期末网页制作,大作业A+水平
~腾讯游戏官网HTML+CSS+JavaScript实现,共有游戏首页 关于游戏 游戏介绍 品牌活动
4页面!
原始HTML+CSS+JS页面设计,可以学习学习,大学网页设计作业,~这是一个不错的网页制作,画面精明,非常适合初学者学习使用。
作品演示
文件目录
代码实现
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> 仿腾讯游戏官网</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<link rel="icon" type="image/x-icon" href="./img/未标题-1.png" />
<link rel="stylesheet" href="./Swiper/swiper.min.css">
<link rel="stylesheet" href="./font-awesome-4.7.0/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./css/index.css">
<script src="./js/jquery-2.1.0.js"></script>
<script src="./Swiper/swiper.min.js"></script>
<style>
html, body {
position: relative;
height: 100%;
}
.dis_bottom{
display: none;
}
body {
background: #eee;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 14px;
color:#000;
margin: 0;
padding: 0;
}
.swiper-container {
width: 100%;
height: 100%;
}
.swiper-slide {
/* text-align: center; */
font-size: 18px;
background: #fff;
/* Center slide text vertically */
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
}
.swiper-pagination-bullet{
border-radius: 100%;
height: 30px;
border: 4px solid white;
background: none;
box-shadow: 0px 2px 5px aliceblue ;
}
.swiper-pagination{
margin-right: 3%;
}
</style>
</head>
<body>
<!-- Swiper -->
<div class="container1" style="z-index: 999999999; position: fixed; display: flex; justify-content: space-between;">
<a href="./index.html" style="z-index: 99;">
<img src="./img/logo.png" alt="">
</a>
<div class="f1_1" style="z-index: 99; display: flex; justify-content: space-around; width: 25%; position: absolute; right: 0;">
<div style="color: whitesmoke; line-height: 80px;">
<a href="./about.html">关于腾讯游戏</a>
</div>
<div style="color: whitesmoke; line-height: 80px;">
<a href="./Introduction.html">游戏介绍</a>
</div>
<div style="color: whitesmoke; line-height: 80px;">
<a href="./Brands.html">品牌活动</a>
</div>
</div>
<div class="fa fa-bars fa-3x dis_bottom" style="line-height: 80px; color: white; z-index: 99999999;"> </div>
<div class="fa fa-bars fa-3x dis_phone" style="line-height: 80px; color: white; display: none;"> </div>
<div class="fa fa-window-close fa-3x dis_phone_1" style="line-height: 80px; color: white; display: none;"> </div>
</div>
<div class="fix_phone" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: black; z-index: 9999999; padding: 100px 40px ;">
<a href="./index.html">
<div style="color: white; font-size: 25px; margin-top: 20px;"> 首页</div>
</a>
<a href="./about.html">
<div style="color: white; opacity: 0.5; margin-top: 20px;font-size: 25px;"> 关于腾讯游戏</div>
</a>
<a href="./Introduction.html">
<div style="color: white; opacity: 0.5; margin-top: 20px; font-size: 25px;"> 游戏介绍</div>
</a>
<a href="./Brands.html">
<div style="color: white; opacity: 0.5; margin-top: 20px; font-size: 25px;"> 品牌活动</div>
</a>
</div>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="f1">
<video width="100%" height="100%" src="./img/1022_18cd57db826a4884a650045a2786ed7e.f0.mp4" muted="true" loop="true" autoplay="true" class="video">
</video>
<img class="tit_1" src="./img/title_1.png" style="z-index: 99; position: absolute; top: 30%; width:40% ; left: 50%; transform: translateX(-50%); margin: 0 auto;" alt="">
<i class="fa fa-play-circle-o fa-5x" style="color: white; cursor: pointer; position: absolute; z-index: 99; top: 60%; cursor: pointer; left: 50%; transform: translateX(-50%);">
</i>
<div class="geng_x" style="display: none; color: white; width: 100%; background: #0f0f1e; text-align: right; height: 60px; position: absolute; left: 0; top: 80px;">
<i class="fa fa-window-close fa-2x" style="cursor: pointer; margin-right: 4%;"></i>
</div>
<iframe style="display: none; z-index: 999; position: relative; margin-top: 115px; width: 100%; height: 100%;" src="" frameborder="0">
</iframe>
</div>
</div>
<div class="swiper-slide">
<div class="f2" >
<img src="./img/transition_2.png" alt="" style="width: 100%; height: 100%;" >
<img src="./img/picture_2.png" style="position: absolute; top: 0; right: 0; height: 100%; opacity: 0.4;" alt="">
<img src="./img/figure_2.png" alt="" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
<img class="f2_1" src="./img/title_2.png" style="width: 30%; margin-top: 8%; margin-left: 8%; position: absolute; top: 0; left: 0;" alt="">
<div class="f2_2" style="z-index: 99; position: absolute; top: 0; left: 0; font-size: 20px; opacity: 0.7; margin-left: 8%; color: white;">
腾讯游戏致力于为玩家提供丰富优质的游戏体验,让玩家不只在游戏里收获快乐<br>
也能体验多重身份、广交好友、感受多元文化腾讯游戏不断提升游戏品质、拓宽品类<br>
打造极致的游戏体验,陪伴玩家一起发现游戏乐趣的无限可能
</div>
<div class="f2_3" style="color: white; font-weight: bold; font-size: 30px; z-index: 99; position: absolute; margin-left: 8%;">
<a href="">游戏介绍 <i class="fa fa-chevron-right"></i></a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="f2" >
<img src="./img/transition_3.png" alt="" style="width: 100%; height: 100%;" >
<img src="./img/picture_3.png" style="position: absolute; top: 0; right: 0; height: 100%; opacity: 0.4;" alt="">
<img src="./img/figure_3.png" alt="" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
<img class="f2_1" src="./img/title_3.png" style="width: 30%; margin-top: 8%; margin-left: 8%; position: absolute; top: 0; left: 0;" alt="">
<div class="f2_2" style="z-index: 99; position: absolute; top: 0; left: 0; font-size: 20px; opacity: 0.7; margin-left: 8%; color: white;">
腾讯游戏将不断探索创新,拓宽游戏的边界,发现更多创新玩法,通过游戏<br>
与前沿科技的融合,为玩家提供更新奇的游戏体验和乐趣,同时推动游戏<br>
行业的发展,发现游戏的更多可能
</div>
<div class="f2_3" style=" color: white; width: 100%; font-weight: bold; font-size: 30px; z-index: 99; position: absolute; padding-left: 8%;">
<a href="" style="margin-right: 4%; ">NExT Studios <i class="fa fa-chevron-right"></i></a>
<br>
<a href="">
腾讯极光计划 <i class="fa fa-chevron-right"></i>
</a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="f2" >
<img src="./img/transition_4.png" alt="" style="width: 100%; height: 100%;" >
<img src="./img/picture_4.png" style="position: absolute; top: 0; right: 0; height: 100%; opacity: 0.4;" alt="">
<img src="./img/figure_4.png" alt="" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
<img class="f2_1" src="./img/title_4.png" style="width: 30%; margin-top: 8%; margin-left: 8%; position: absolute; top: 0; left: 0;" alt="">
<div class="f2_2" style="z-index: 99; position: absolute; top: 0; left: 0; font-size: 20px; opacity: 0.7; margin-left: 8%; color: white;">
从游戏出发,腾讯游戏用数字的方式架起了文化与生活之间的桥梁<br>
助力各类传统文化发出现代的表达,走进玩家以及更多年轻人的生活里<br>
打造中国文化符号
</div>
<div class="f2_3" style="color: white; font-weight: bold; font-size: 30px; z-index: 99; position: absolute; margin-left: 8%;">
<a href="" class="f2_3_1">TGC腾讯数字文创节 <i class="fa fa-chevron-right"></i></a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="f2" >
<img src="./img/transition_5.png" alt="" style="width: 100%; height: 100%;" >
<img src="./img/picture_5.png" style="position: absolute; top: 0; right: 0; height: 100%; opacity: 0.4;" alt="">
<img src="./img/figure_5.png" alt="" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
<img class="f2_1" src="./img/title_5.png" style="width: 30%; margin-top: 8%; margin-left: 8%; position: absolute; top: 0; left: 0;" alt="">
<div class="f2_2" style="z-index: 99; position: absolute; top: 0; left: 0; font-size: 20px; opacity: 0.7; margin-left: 8%; color: white;">
腾讯游戏不仅致力于为玩家提供更多元的游戏体验,更希望通 过游戏作为载体和平台<br>
守护正向价值,传播人文关怀,激发更多社会正向能量。腾讯游戏不断探索游戏在社会中<br>
扮演的角色积极主动承担社会责任,践行社会使命
</div>
<div class="f2_3" style=" color: white; width: 100%; font-weight: bold; font-size: 30px; z-index: 99; position: absolute; padding-left: 8%;">
<a href="" style="margin-right: 4%; font-size: 17px; ">腾讯游戏成长守护平台 <i class="fa fa-chevron-right"></i></a>
<br>
<a href="" style="font-size: 17px;">
腾讯游戏追梦计划 <i class="fa fa-chevron-right"></i>
</a>
<br>
<a href="" style="font-size: 17px;">
腾讯游戏学院 <i class="fa fa-chevron-right"></i>
</a>
</div>
</div>
</div>
<div class="swiper-slide last">
<div class="f2 last_f2" style="padding-top: 10%; box-sizing: border-box;" >
<img src="./img/transition_5.jpg" alt="" style="position: absolute; top: 0; left: 0; z-index: 9; width: 100%; height: 100%;" >
<img src="./img/figure_6.png" alt="" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
<div class="container2">
<div>
<img src="./img/news1.jpg" alt="">
<div >
<p>
今天腾讯游戏品牌全新升级
</p>
<p>
2019.11.21
</p>
</div>
</div>
<div class="new_more" style="text-align: center; color: white; margin-top: 132px; display: none;">
<a href="" style="text-decoration: white;"><u>查看更多,就用腾讯新闻</u></a>
</div>
<div class="new_2">
<img src="./img/news2.png" alt="">
<div>
<p>
腾讯马晓花:推动数字文化高质量发展,共同…
</p>
<p>
2019.8.1
</p>
</div>
</div>
<div class="new_3">
<img src="./img/news3.jpg" alt="">
<div>
<p>
腾讯程武:新文创是一场面向未来的文化生…
</p>
<p>
2019.3.24
</p>
</div>
</div>
</div>
<div class="geng_last" style="padding-top: 2%; position: absolute; bottom: 0px; left: 0px; height: 30%; background: #28234c; width: 100%; z-index: 99;">
<div class="container3">
<div style="width: 40%; display: flex; justify-content: space-between;">
<div class="geng_love" style="color: white; font-size: 17px; font-weight: bold;">关注我们<i class="fa fa-sort-desc" style="display: none;"></i>
<a href="" >
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">微信</div>
</a>
<a href="">
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">新浪微博</div>
</a>
</div>
<div class="geng_love" style="color: white; font-size: 17px; font-weight: bold;">加入我们<i class="fa fa-sort-desc" style="display: none;"></i>
<a href="" >
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">社会招聘</div>
</a>
<a href="">
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">校园招聘</div>
</a>
<a href="" >
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">国际招聘</div>
</a>
</div>
<div class="geng_love" style="color: white; font-size: 17px; font-weight: bold;">联系我们<i class="fa fa-sort-desc" style="display: none;"></i>
<a href="" >
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">客户服务</div>
</a>
<a href="">
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">合作洽谈</div>
</a>
<a href="" >
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">服务采购</div>
</a>
</div>
<div class="geng_love" style="color: white; font-size: 17px; font-weight: bold;">法律信息<i class="fa fa-sort-desc" style="display: none;"></i>
<a href="" >
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">服务协议</div>
</a>
<a href="">
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">隐私政策</div>
</a>
<a href="" >
<div class="last_item" style="margin-top: 10px; color: white; opacity: 0.5; font-size: 14px;">知识产权</div>
</a>
</div>
</div>
<div><img style="width: 197px; height: 27px;" src="./img/logo_tencent.png" alt=""></div>
</div>
</div>
</div>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
<!-- Swiper JS -->
<script>
var swiper = new Swiper('.swiper-container', {
mousewheel: true,
direction: 'vertical',
pagination: {
el: '.swiper-pagination',
clickable: true,
},
});
</script>
<script src="./js/index.js"></script>
<!-- Initialize Swiper -->
</body>
</html>
做好的网页效果,如何通过发链接给别人看?
1.1解决部署上线~> 部署上线工具(永久免费使用)
1.不需要买服务器
就能部署线上,全世界都能访问你的连接啦, 这里给大家推荐一个程序员必备神器~
插件集成了超级多好用的插件,免费下载安装,简单易懂, 简直神器 ~ 需要可在文章 ↓ 下方公Z号获取
2.就是把你的代码效果做好了以后, 部署到线上, 把链接发给别人, 就可以让对方通过你的连接点击进去, 就能看到你的网页效果啦
, 电脑端和手机端都可以噢! (不然别人看你的网页都要发文件过去,体验感不太好哦~)
1.1部署流程
1.2 哇~ 部署成功
哇~ 部署成功! 将你写好的页面部署上线后, 全世界的人都可以通过链接访问到你的网页了(永久免费使用哦)~
前端 零基础入门到高级
(视频+源码+开发软件+学习资料+面试题) 一整套 (教程)
适合入门到高级的童鞋们入手~送1000套HTML+CSS+JavaScript模板网站
源码获取
❉ ~ 关注我,点赞博文~ 每天带你涨知识!
❉1.看到这里了就 [点赞+好评+收藏] 三连
支持下吧,你的「点赞,好评,收藏」是我创作的动力。
❉ 2.关注我
~ 每天带你学习 :各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!
❉3.以上内容技术相关问题可以相互学习,可关注↓公Z号
获取更多源码 !
更多HTML期末学生作业文章
1.HTML期末学生结课大作业~html+css+javascript仿叮当电影在线网站(功能齐全)
2.HTML期末学生作业~html+css+javascript仿猫眼电影在线网站(功能齐全)
3.HTML期末学生大作业(9套)html+css+javascript仿京东、天猫、服装、各大电商模板(大学毕业设计)
4.HTML期末大作业~海贼王中乔巴专题漫画学生网页设置作业源码(HTML+CSS+JavaScript)
5.HTML期末大作业~基于HTML+CSS+JavaScript的旅游网站设计与实现