作者主頁: 【進入主頁—獲取更多源碼】
web前端期末大作業: 【HTML5網頁期末作業 (1000套) 】
程序員有趣的告白方式:【HTML七夕情人節表白網頁制作 (110套) 】
文章目錄
二、網站介紹
網站布局方面:計劃采用目前主流的、能兼容各大主流瀏覽器、顯示效果穩定的浮動網頁布局結構。
網站程序方面:計劃采用最新的網頁編程語言HTML5+CSS3+JS程序語言完成網站的功能設計。并確保網站代碼兼容目前市面上所有的主流瀏覽器,已達到打開后就能即時看到網站的效果。
網站素材方面:計劃收集各大平臺好看的圖片素材,并精挑細選適合網頁風格的圖片網站制作,然后使用PS做出適合網頁尺寸的圖片。
網站文件方面:網站系統文件種類包含:html網頁結構文件、css網頁樣式文件、js網頁特效文件、網頁圖片文件;
網頁編輯方面:網頁作品代碼簡單網站制作,可使用任意HTML編輯軟件(如:、、 、 、、Text 、++ 等任意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>
2020年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模板 、等!
以上內容技術相關問題歡迎一起交流學習
*請認真填寫需求信息,我們會在24小時內與您取得聯系。