🌩️ 精彩专栏推荐👇🏻👇🏻👇🏻
💂 作者主页: 【进入主页—🚀获取更多源码】
🎓 web前端期末大作业: 【📚HTML5网页期末作业 (1000套) 】
🧡 程序员有趣的告白方式:【💌HTML七夕情人节表白网页制作 (110套) 】
📂文章目录
- 二、📚网站介绍
- 三、🔗网站效果
- ▶️1.视频演示
- 🧩 2.图片演示
- 四、💒 网站代码
- 🧱HTML结构代码
- 🏠CSS样式代码
- 五、🎁更多源码
二、📚网站介绍
📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。
📓网站程序方面:计划采用最新的网页编程语言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代码)。
三、🔗网站效果
▶️1.视频演示
B51JP 摩尔庄园7页HTML+CSS+JS
🧩 2.图片演示
四、💒 网站代码
🧱HTML结构代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<head>
<link href="css/all.css" rel="stylesheet" media="all" type="text/css" />
<title>摩尔庄园</title>
</head>
<body>
<nav class="menu">
<ul class="center">
<li><a href="index.html">首页</a></li>
<li><a href="zixun.html">游戏资讯</a></li>
<li><a href="juese.html">时装展示</a></li>
<li><a href="jietu.html">游戏截图</a></li>
<li><a href="zhuce.html">账号注册</a></li>
<li><a href="denglu.html">用户登录</a></li>
</ul>
</nav>
<div class="content">
<!--顶部-->
<div class="banner" id="banner">
<ul id="b_pic">
<li style="display: block;"><img src="images/banner1.jpg" alt=""></li>
<li><img src="images/banner2.jpg" alt=""></li>
<li><img src="images/banner3.jpg" alt=""></li>
</ul>
<ul id="b_an">
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="bar">
<h2>游戏资讯</h2>
</div>
<div class="cs">
<div class="v">
<video controls="" autoplay="" name="media" width="440" height="275">
<source src="video/shipin.mp4" type="video/mp4">
</video>
</div>
<ul>
<li><a href="info.html">摩尔庄园手游黑森林是什么 黑森林背景故事</a></li>
<li><a href="info.html">摩尔庄园手游勇士什么时候出 勇士上线时间</a></li>
<li><a href="info.html">摩尔庄园黑森林什么时候上线 黑森林上线时间</a></li>
<li><a href="info.html">摩尔庄园手游6月5日停服维护公告 音乐节系列活动来袭</a></li>
<li><a href="info.html">童年经典摩尔庄园手游将于1月28日左右上线!</a></li>
<li><a href="info.html">3月26日摩尔庄园“稻香”测试将启</a></li>
</ul>
</div>
<div class="bar">
<h2>时装展示</h2>
</div>
<div class="list">
<ul>
<li class="sa"> <img src="images/1.jpg" /> </li>
<li class="sa"> <img src="images/2.jpg" /> </li>
<li class="sa"> <img src="images/3.jpg" /> </li>
</ul>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<footer class="end">
<p>摩尔庄园 </p>
</footer>
<script src="js/lunbo.js" type="text/javascript"></script>
</body>
</html>
🏠CSS样式代码
@charset "utf-8";
/* CSS Document */
ul,li,h1,h2,h3,p {
padding: 0;
margin: 0;
list-style: none
}
a {
text-decoration: none;
color: #000
}
html {
background: #f6ecd8
}
body {
width: 1200px;
margin: 0px auto;
line-height: 21px;
}
.clear {
clear: both
}
.menu li {
list-style: none
}
.logo {
font-size: 36px;
font-weight: bold;
color: #fff;
}
.banner {
position: relative
}
.menu {
background:#ff8a00;
margin-top:30px;
clear: both;
height: 60px;
width: 100%;
}
.menu li a {
color: #fff;
display: block
}
.menu li {
text-align: center;
display: inline-block;
line-height: 60px;
float: left;
width: 16.66%;
text-align: center;
font-weight:bold;
font-size: 18px;
}
.menu li:hover {
background: #FF6666
}
.content {
font-size: 14px;
width: 100%
}
.tit{ text-align:center; padding-top:40px; font-weight:normal;}
.index {
line-height: 32px;
height: 240px;
float: left;
width: 96%;
padding: 2%
}
.mr {
background: #d06855;
display: inline-block;
padding: 10px 30px;
color: #fff;
margin-top: 20px;
}
.list li {
width:33.3%;
float: left;
margin: 5px 0;
text-align: center
}
.list ul {
padding: 20px 0px;
margin:0 -10px;
}
.list li img {
width: 95%;
height:240px;
display:block;
margin:0 auto
}
.end {
clear: both;
background: #ff8a00;
color: #fff;
padding: 20px 0;
margin:30px 0;
font-size: 24px;
text-align: center;
}
.pad {
padding: 20px 70px;
display: block
}
.main {
margin: 20px 40px
}
.cs {
margin: 30px 0px;
font-size: 16px;
line-height: 30px
}
.index img {
margin-right: 50px
}
.index h3 {
color: #ff6c00;
font-size: 24px;
margin-bottom: 20px
}
.index .fr {
margin-right: 0;
margin-left: 20px
}
.cs {
position: relative
}
.cs .v {
position: absolute;
}
.cs ul {
color: #fff;
margin-left: 440px;
background: #f3c452;
height: 245px;
padding: 15px;
}
.cs ul li {
margin-left: 40px;
line-height: 37px;
list-style:disc
}
.cs ul li a {
color: #6c4a29;
font-size: 18px;
}
.fl {
float: left
}
.fr {
float: right
}
.forma {
display: block;
width: 600px;
margin: 50px auto;
font-size: 18px;
padding: 0 0px;
padding-bottom: 0px;
}
.forma .input {
margin-top: 20px;
}
.es {
padding: 25px;
height: 50px;
vertical-align: middle;
width: 30px
}
.forma .input span {
vertical-align: top;
font-size: 20px;
margin-right: 20px;
display: inline-block;
text-align: left;
height: 50px;
line-height: 50px;
display: block;
}
.forma .input .phone {
width: 100%;
font-size: 18px;
height: 50px;
line-height: 50px;
background: #dbcca3;
border:none;
text-indent: 20px;
padding: 0 0px;
}
.btn {
background: #ff6c00;
color: #fff;
width: 100%;
line-height: 50px;
font-size: 18px;
border: none;
margin-top: 30px;
}
.banner {
position: relative;
clear: both
}
#banner {
width: 100%;
height: 550px;
position: relative;
}
#banner ul#b_pic li {
width: 100%;
height: 550px;
overflow: hidden;
position: absolute;
top: 0;
display: none;
}
#banner ul#b_pic li img {
width: 100%;
height: 550px;
display: block;
}
#banner ul#b_an {
position: absolute;
width: 100%;
bottom: 32px;
display: flex;
align-items: center;
justify-content: center;
}
#banner ul#b_an li {
width: 13px;
height: 13px;
background: #ff6c00;
margin: 0 3px;
border-radius:13px;
}
.bar {
background:#fff;
box-shadow: 4px 4px 5px #888888;
margin: 20px 0px;
margin-bottom: 0
}
.bar h2 {
background:#ff8a00;
width: 200px;
height: 70px;
color: #fff;
line-height: 68px;
text-align: center;
font-size: 24px;
font-weight: normal
}
.info {
line-height: 30px
}
.news li{ background:#fff; padding:20px; margin:10px 0
}
.news h2 {
color: #ff6c00;
padding-bottom: 5px;
}
.news p {
font-size: 15px;
padding: 20px 0;
margin-bottom: 20px;
}
五、🎁更多源码
1.如果我的博客对你有帮助 请 “👍点赞” “✍️评论” “💙收藏”
一键三连哦!
2.💗【👇🏻👇🏻👇🏻🉑关注我| 获取更多源码】
带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、等!
📣以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻
更多推荐
学生动漫网页设计模板下载 摩尔庄园大学生HTML网页制作作品 简单漫画网页设计成品 dreamweaver学生网站模板
发布评论