? 【作者主頁——獲取更多優質源碼】
? 【web前端期末大作業——畢設項目精品實戰案例(1000套)】
文章目錄
一、網頁介紹
1 網頁簡介:此作品為學生個人主頁網頁設計題材,HTML+CSS 布局制作,web前端期末大作業,大學生網頁設計作業源碼,這是一個不錯的網頁制作,畫面精明,代碼為簡單學生水平, 非常適合初學者學習使用。
2.網頁編輯:網頁作品代碼簡單,可使用任意HTML編輯軟件(如:、、 、 、、Text 、++ 等任意html編輯軟件進行運行及修改編輯等操作)。
3.知識應用:技術方面主要應用了網頁知識中的: Div+CSS、鼠標滑過特效、Table、導航欄效果、、表單、二級三級頁面等,視頻、 音頻元素 、Flash,同時設計了Logo(源文件)所需的知識點。
一、網頁效果
二、代碼展示 1.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>
2.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;
}
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;
}
三、個人總結
一套合格的網頁應該包含(具體可根據個人要求而定)
頁面分為頁頭、菜單導航欄(最好可下拉)、中間內容板塊、頁腳四大部分;所有頁面相互超鏈接,可到三級頁面dw網頁布局有幾種方式,有5-10個頁面組成;頁面樣式風格統一布局顯示正常,不錯亂,使用Div+Css技術;菜單美觀、醒目,二級菜單可正常彈出與跳轉;要有JS特效,如定時切換和手動切換圖片新聞;頁面中有多媒體元素,如gif、視頻、音樂dw網頁布局有幾種方式,表單技術的使用;頁面清爽、美觀、大方,不雷同。網站前端程序不僅要能夠把用戶要求的內容呈現出來,還要滿足布局良好、界面美觀、配色優雅、表現形式多樣等要求。 四、更多干貨
1.如果我的博客對你有幫助、如果你喜歡我的博客內容,請 “點贊” “??評論” “收藏” 一鍵三連哦!
2.??【關注我| 獲取更多源碼 | 優質文章】 帶您學習各種前端插件、3D炫酷效果、圖片展示、文字效果、以及整站模板 、大學生畢業HTML模板 、期末大作業模板 、等! 「在這里有好多 前端 開發者,一起探討 前端 Node 知識,互相學習」!
3.以上內容技術相關問題歡迎一起交流學習