2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > 一个简单的网页制作作业 宠物html静态网页制作成品代码(学生网页设计作业源码)

一个简单的网页制作作业 宠物html静态网页制作成品代码(学生网页设计作业源码)

时间:2018-09-30 06:20:19

相关推荐

一个简单的网页制作作业 宠物html静态网页制作成品代码(学生网页设计作业源码)

🌩️ 精彩专栏推荐👇🏻👇🏻👇🏻

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

🎓 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.视频演示

U17JP- 北极熊6页

🧩 2.图片演示

四、💒 网站代码

🧱HTML结构代码

<!DOCTYPE html><html><head><meta charset="utf-8"><link type="text/css" rel="stylesheet" href="css/css.css" /><title>北极熊</title><script src="js/jquery-2.0.3.min.js"></script><script src="js/scroll.js"></script></head><body><div class="wrapin"><div class="banner"> <img src="images/banner.jpg"/> </div><div class="header"><ul class="nav"><li><a href="index.html">主页</a></li><li><a href="life.html">生活习性</a></li><li><a href="population.html">种群现状</a></li><li><a href="features.html">外形特征</a></li><li><a href="reproduction.html">生长繁殖</a></li><li><a href="liuyan.html">留言 </a></li></ul></div><div class="con"><div class="con_t"><div class="text"><h3>北极熊 (世界上最大的陆地食肉动物)</h3><p>北极熊(拉丁学名:Ursus maritimus),是熊科熊属的一种动物,是世界上最大的陆地食肉动物,又名白熊。皮肤为黑色,由于毛发透明故外观上通常为白色,也有黄色等颜色,体型巨大,凶猛。<br>北极熊的视力和听力与人类相当,但它们的嗅觉极为灵敏,是犬类的7倍;奔跑时最快速度可达60km/h,是世界百米冠军的1.5倍。由于全球气温的升高,北极的浮冰逐渐开始融化,北极熊昔日的家园已遭到一定程度的破坏,在不久的未来很可能灭绝,需要人类的保护。<br>7月20日,《自然》杂志(Nature)发布的研究显示,随着气候变化加剧,北极熊的生存环境遭到极大破坏,这一物种或将于2100年灭绝。</p></div><div class="pic"> <img src="images/pic_01.jpg"/> </div><div class="clear"></div></div><div class="rules"><div class="title">栖息环境</div><P>北极熊是一种能在恶劣的环境下生存的动物,其活动范围主要在北冰洋附近有浮冰的海域。</P></div><div class="players"><div class="title">北极熊图片</div><div class="imglist scrollleft" ><ul class="players_box"><li><div class="pic"><img src="images/pic_01.jpg"/> </div><p>北极熊图片</p></li><li><div class="pic"><img src="images/pic_02.jpg"/> </div><p>北极熊图片</p></li><li><div class="pic"><img src="images/pic_03.jpg"/> </div><p>北极熊图片</p></li><li><div class="pic"><img src="images/pic_04.jpg"/> </div><p>北极熊图片</p></li><li><div class="pic"><img src="images/pic_05.jpg"/> </div><p>北极熊图片</p></li><li><div class="pic"><img src="images/pic_06.jpg"/> </div><p>北极熊图片</p></li><li><div class="pic"><img src="images/pic_07.jpg"/> </div><p>北极熊图片</p></li><li><div class="pic"><img src="images/pic_08.jpg"/> </div><p>北极熊图片</p></li><li><div class="pic"><img src="images/pic_09.jpg"/> </div><p>北极熊图片</p></li></ul><div class="clear"></div></div></div></div><footer><P>北极熊 版权所有</P></footer></div></body><script type="text/javascript">$(document).ready(function(){$(".scrollleft").imgscroll({speed: 40, //图片滚动速度amount: 0, //图片滚动过渡时间width: 1,//图片滚动步数dir: "left" // "left" 或 "up" 向左或向上滚动});});</script></html>

🏠CSS样式代码

* {margin: 0;padding: 0;}body {min-width: 1200px;margin: 0 auto;font-size: 14px;font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Source Han Sans CN, sans-serif;background: #fff;text-align: justify;color: #010000;position: relative;}h1, h2, h3 {font-weight: 500;}img {border: none;}a {cursor: pointer;color: #333;text-decoration: none;outline: none;}ul {list-style-type: none;}em {font-style: normal;}.lt {float: left;}.rt {float: right;}table {border-collapse: collapse;}table td, table th {padding: 0;}div.clear {font: 0px Arial;line-height: 0;height: 0;overflow: hidden;clear: both;}.wrapin {width: 1200px;margin-left: auto;margin-right: auto;}body {background: url(../images/bg.jpg) no-repeat center;background-size: cover;}.banner {width: 100%;display: block;}.banner img {width: 100%;display: block;}.header {background:#FFF;height: 60px;width: 100%;border-bottom:1px solid #ddd;}.nav {line-height: 60px;}.nav li {text-align: center;width: 140px;display: inline-block;}.nav li a {font-size: 16px;color: #333;}.con {min-height: 500px;background: rgba(255,255,255,1);padding: 15px;}.title {margin:20px 0;font-weight: bold;color: #fff;font-size: 18px;line-height: 40px;background:#3a6788;padding:1px 10px;}.con_t {padding: 30px 0 0;}.con_t .pic {float:right;width: 400px;border: 1px solid #ccc;padding: 10px;box-sizing: border-box;}.con_t .pic img {width: 100%;}.con_t .text {float:left;width: 740px;font-size: 14px;line-height: 28px;color: #333;}.con_t .text h3 {font-size:22px;margin-bottom:20px;}.players_box {}.players_box li {width:300px;margin-right:20px;float: left;text-align: center;margin-bottom: 20px;border:1px solid #3a6788;}.players_box li .pic {width:100%;margin:0 auto;overflow:hidden;height:195px;}.players_box li p {font-size: 16px;color: #333;line-height: 30px;display: block;margin: 0 auto;background: #fff;position: relative;z-index: 1;}.players_box li img {display:block;width:100%;height:100%;object-fit:cover;-webkit-transition: all 0.3s;-moz-transition: all 0.3s;-o-transition: all 0.3s;transition: all 0.3s;}.players_box li img:hover {transform: scale(1.1);-webkit-transform: scale(1.1); /*兼容-webkit-引擎浏览器*/-moz-transform: scale(1.1);}.rules h2 {color: #000;font-weight: bold;margin: 10px 0;}.rules p {font-size: 16px;color: #333;line-height: 28px;margin-bottom: 10px;}footer {height: 60px;line-height: 60px;margin-top: 20px;text-align: center;color: #333;background: #fff;}.nba {margin: 15px -15px;}.nba li {float: left;width: 33.33%;padding: 15px;box-sizing: border-box;}.nba li .box {width: 100%;height: 210px;overflow: hidden;}.nba li p {text-align:center;height:30px;line-height:30px;font-size:16px;}.nba li .box img {width: 100%;height: 100%;object-fit: cover;-webkit-transition: all 0.3s;-moz-transition: all 0.3s;-o-transition: all 0.3s;transition: all 0.3s;}.nba li .box img:hover {transform: scale(1.1);-webkit-transform: scale(1.1); /*兼容-webkit-引擎浏览器*/-moz-transform: scale(1.1);}.text_nab {font-size: 16px;line-height: 28px;}.msg>div{padding:10px}.msg .tin {height:30px;width:400px;}.msg textarea {width:400px;height:300px;}.msg .btn {width:400px;height:35px;border:none;color:#fff;margin-left:50px;background:#3a6788;}

五、🎁更多源码

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

2.💗【👇🏻👇🏻👇🏻🉑关注我| 获取更多源码】带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、等!

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

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