?? 作者簡介: 一個熱愛把邏輯思維轉(zhuǎn)變?yōu)榇a的技術(shù)博主
作者主頁: 【主頁——獲取更多優(yōu)質(zhì)源碼】
web前端期末大作業(yè): 【畢設(shè)項(xiàng)目精品實(shí)戰(zhàn)案例 (1000套) 】
程序員有趣的告白方式:【HTML七夕情人節(jié)表白網(wǎng)頁制作 (110套) 】
超炫酷的大屏可視化源碼:【 大屏展示大數(shù)據(jù)平臺可視化(150套) 】
HTML+CSS+JS實(shí)例代碼:
免費(fèi)且實(shí)用的WEB前端學(xué)習(xí)指南:
關(guān)于作者: 歷任研發(fā)工程師,技術(shù)組長,教學(xué)總監(jiān);曾于2016年、2020年兩度榮獲CSDN年度十大博客之星。 十載寒冰,難涼熱血;多年過去使用html制作動態(tài)網(wǎng)頁,歷經(jīng)變遷,物是人非。 然而,對于技術(shù)的探索和追求從未停歇。 堅(jiān)持原創(chuàng),熱衷分享,初心未改,繼往開來!
文章目錄
一、?網(wǎng)站題目
茶文化網(wǎng)站、??中華傳統(tǒng)文化題材、京劇文化水墨風(fēng)書畫、中國民間年畫文化藝術(shù)網(wǎng)站 、等網(wǎng)站的設(shè)計(jì)與制作。
二、??網(wǎng)站描述
? 這個首頁代碼運(yùn)用了DIV盒子的使用方法,如盒子的嵌套、浮動、、、等屬性的使用,外部大盒子設(shè)定居中,內(nèi)部左中右布局,下方橫向浮動排列,大學(xué)學(xué)習(xí)的前端知識點(diǎn)和布局方式都有運(yùn)用,CSS的代碼量也很足、很細(xì)致,使用hover來完成過渡效果、鼠標(biāo)滑過效果等,使用表格、表單補(bǔ)充模塊,為方便新手學(xué)習(xí), 個別源碼頁面中沒有使用js有需要的可以自行添加。
一套優(yōu)質(zhì)的網(wǎng)頁設(shè)計(jì)應(yīng)該包含 (具體可根據(jù)個人要求而定)
頁面分為頁頭、菜單導(dǎo)航欄(最好可下拉)、中間內(nèi)容板塊、頁腳四大部分。所有頁面相互超鏈接,可到三級頁面,有5-10個頁面組成。頁面樣式風(fēng)格統(tǒng)一布局顯示正常,不錯亂,使用Div+Css技術(shù)。菜單美觀、醒目,二級菜單可正常彈出與跳轉(zhuǎn)。要有JS特效,如定時切換和手動切換圖片輪播。頁面中有多媒體元素,如gif、視頻、音樂,表單技術(shù)的使用。頁面清爽、美觀、大方,不雷同。 。不僅要能夠把用戶要求的內(nèi)容呈現(xiàn)出來,還要滿足布局良好、界面美觀、配色優(yōu)雅、表現(xiàn)形式多樣等要求。 三、網(wǎng)站介紹
網(wǎng)站布局方面:計(jì)劃采用目前主流的、能兼容各大主流瀏覽器、顯示效果穩(wěn)定的浮動網(wǎng)頁布局結(jié)構(gòu)。
網(wǎng)站程序方面:計(jì)劃采用最新的網(wǎng)頁編程語言HTML5+CSS3+JS程序語言完成網(wǎng)站的功能設(shè)計(jì)。并確保網(wǎng)站代碼兼容目前市面上所有的主流瀏覽器,已達(dá)到打開后就能即時看到網(wǎng)站的效果。
網(wǎng)站素材方面:計(jì)劃收集各大平臺好看的圖片素材,并精挑細(xì)選適合網(wǎng)頁風(fēng)格的圖片,然后使用PS做出適合網(wǎng)頁尺寸的圖片。
網(wǎng)站文件方面:網(wǎng)站系統(tǒng)文件種類包含:html網(wǎng)頁結(jié)構(gòu)文件、css網(wǎng)頁樣式文件、js網(wǎng)頁特效文件、網(wǎng)頁圖片文件;
網(wǎng)頁編輯方面:網(wǎng)頁作品代碼簡單,可使用任意HTML編輯軟件(如:、、 、 、、Text 、++ 等任意html編輯軟件進(jìn)行運(yùn)行及修改編輯等操作)。
其中:
(1)html文件包含:其中index.html是首頁、其他html為二級頁面;
(2) css文件包含:css全部頁面樣式,文字滾動, 圖片放大等;
(3) js文件包含:js實(shí)現(xiàn)動態(tài)輪播特效, 表單提交, 點(diǎn)擊事件等等(個別網(wǎng)頁中運(yùn)用到j(luò)s代碼)。
四、網(wǎng)站演示
五、?? 網(wǎng)站代碼 HTML結(jié)構(gòu)代碼
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中國民間年畫title>
<link href="css/index.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
}
script>
head>
<body>
<div id="templatemo_container">
<div id="templatemo_banner">
<div style="width:760px;height:90px;margin-left:170px">
<marquee style="font-size:40px;height:90px;line-height:90px;color:orange;font-weight:bold;">
中國民間年畫
marquee>
div>
div>
<div id="templatemo_menu">
<ul>
<li><a href="index.html">首頁a>li>
<li><a href="jj.html">簡介a>li>
<li><a href="tc.html">圖冊a>li>
<li><a href="dg.html">典故a>li>
<li><a href="cq.html" class="last">產(chǎn)區(qū)a>li>
ul>
div>
<div id="templatemo_content_top">
<div class="section_w335 fl margin_right_40">
<div class="header_01">年畫簡介div>
<div class="image_wrapper"> <img src="images/n1.jpg" alt="image" width="135px" height="135"/> div>
<p> 年 畫 , 中 國 畫 的 一 種 。 始 于 古 代 的 “ 門 神 畫 ” , 大 都 用 于 新 年 時 張 帖 , 裝 飾 環(huán)境 ,含 有 祝 福 新 年 吉 祥 喜慶 之 意 , 故 名 。 傳 統(tǒng) 民 間 年 畫 多 用 木 板 水 印 制 作 主 要 。 。 。 p>
<p><a href="jj.html">更多a>p>
div>
<div class="section_w335 fl">
<div class="header_01"> 圖冊div>
<div class="image_wrapper"> <img src="images/n2.jpg" alt="image" width="135px" height="135" /> div>
<p> 年 畫 大 部分 是 以 吉 祥 、 喜 慶 、 歡 樂 、 美 好 等 事 物 , 或 以 典故 、 成 語 作 為 主 題 ,有 情 節(jié) , 易 于 理解 。 其 取 材 內(nèi) 容 極 為 廣 泛 , 諸 如 歷 史故 事 、 神 話 傳 說 、 吸 取 人 。。。 p>
<p><a href="tc.html">更多》a>p>
div>
<div class="margin_bottom_40">div>
<div class="section_w335 fl margin_right_40">
<div class="header_01"> 典故div>
<div class="image_wrapper"> <img src="images/n3.jpg" alt="image" /> div>
<p>1、五福臨門<br/>
2、門神<br/>
3、雄獅<br/>
4、神虎<br/>
5、和合二仙<br/>
6、九九肖寒圖p>
<p><a href="dg.html">更多》a>p>
div>
<div class="section_w335 fl">
<div class="header_01"> 產(chǎn)區(qū) div>
<div class="image_wrapper"> <img src="images/ds.jpg" alt="image" width="95px" height="95" /> div>
<p>1、楊家埠<br/>
2、朱仙鎮(zhèn) <br/>
3、桃花塢<br/>
4、楊柳青p>
<p><a href="cq.html">更多》a>p>
div>
<div class="margin_bottom_20 b_bottom">div>
<div class="cleaner">div>
div>
<div id="templatmeo_content_bottom">
<div class="section_w210 fl margin_right_40">
<div class="header_02">門神div>
<p> 門神有文、武、童、獸之分。武門神一般按使用的兵器命名。如:武將門神中的鞭锏門神,以唐代大將秦瓊、尉遲敬德為原型。此種門神一般被貼在院落外門及大門上,通常秦瓊(凈臉)居右,尉遲敬德(花臉)居左。戳刀門神為三國蜀將關(guān)公及其世孫關(guān)勝,因?yàn)槎送褂们帻堎仍麓蟮叮食蓪堎N。此門神也貼在院落外邊或者大門上。。。。p>
<p> <a href="dg.html">更多》a>p>
div>
<div class="section_w210 fl margin_right_40">
<div class="header_02">五福臨門div>
<p> 楊柳青年畫題材的一大種類。兩個童子各騎一只大公雞,所持的條幅上分別寫著“功名富貴”、“吉星高照”,借助公雞鳴叫,取“功名”之意,童子頭上戴的牡丹花象征“富貴”,結(jié)成吉語為“功名富貴”;另一童子頭上戴的是菊花,取“菊”為“吉”意。幾只蝙蝠取“?!弊种?,象征幸福,故稱“五福臨門”。。。 p>
<p> <a href="dg.html">更多》a>p>
div>
<div class="section_w210 fl">
<div class="header_02">雄獅div>
<p> 獅子畫像隨著佛教傳入中國變成馴服可親的吉祥瑞獸,造型蓬頭大耳,巨目環(huán)睛。在宮殿、廟堂或者大宅門兩旁,作為守護(hù)、裝飾和辟邪之用,也是權(quán)威的象征。有的地方還把它當(dāng)成小兒的守護(hù)神敬奉。。。。 p>
<p> <a href="dg.html">更多》a>p>
div>
<div class="margin_bottom_40 b_bottom">div>
<div class="margin_bottom_30">div>
<div id="templatemo_footer">
<ul class="footer_list">
<li><a href="index.html">首頁a>li>
<li><a href="jj.html">簡介a>li>
<li><a href="tc.html">圖冊a>li>
<li><a href="dg.html">典故a>li>
<li class="last"><a href="cq.html">產(chǎn)區(qū)a>li>
ul>
<div class="margin_bottom_10">div>
中 國 民 間 年 畫 網(wǎng) 站 所 有
<div class="margin_bottom_20">div>
div>
<div class="cleaner">div>
div>
div>
body>
html>
CSS樣式代碼
* {
font-family:"微軟雅黑";
}
body {
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333;
background: #faf1dd url(../images/01.jpg) repeat-x;
background-size:cover;

}
a:link, a:visited { color: #af1313; text-decoration: underline; font-weight: normal; }
a:active, a:hover { color: #996600; text-decoration: none; }
p {
margin: 0px;
padding: 0px;
}
img {
margin: 0px;
padding: 0px;
border: none;
}
.cleaner { clear: both; width: 100%; height: 0px; font-size: 0px; }
.margin_bottom_10 { clear: both; width: 100%; height: 10px; font-size: 1px; }
.margin_bottom_15 { clear: both; width: 100%; height: 15px; font-size: 1px; }
.margin_bottom_20 { clear: both; width: 100%; height: 20px; font-size: 1px; }
.margin_bottom_30 { clear: both; width: 100%; height: 30px; font-size: 1px; }
.margin_bottom_40 { clear: both; width: 100%; height: 40px; font-size: 1px; }
.margin_bottom_50 { clear: both; width: 100%; height: 50px; font-size: 1px; }
.margin_bottom_60 { clear: both; width: 100%; height: 60px; font-size: 1px; }
.margin_right_40 { margin-right: 40px; }
.margin_right_60 { margin-right: 60px; }
.b_bottom {
border-bottom: 1px solid #e3bb67;
}
.fl { float: left; }
.fr { float: right }
#templatemo_container {
width: 950px;
margin: 0 auto;
padding: 0 5px;
}
#templatemo_banner {
width: 950px;
height: 90px;
}
#search_section {
float: right;
margin: 50px 30px 0 0;
width: 250px;
height: 30px;
background: url(../images/1templatemo_search_bg.jpg) no-repeat;
}
#search_section form {
width: 250px;
height: 30px;
margin: 0px;
padding: 0 0 0 2px;
}
#searchfield {
height: 16px;
width: 170px;
padding: 5px;
color: #000000;
font-size: 12px;
font-variant: normal;
line-height: normal;
background: none;
border: none;
}
#searchbutton {
width: 65px;
height: 29px;
padding: 0 6px;
cursor: pointer;
font-size: 12px;
font-weight: bold;
text-align: center;
vertical-align: bottom;
white-space: pre;
color: #333333;
background: none;
border:
border: 3px solid #d4bc88;
}
.section_w335 p {
float: right;
width: 180px;
text-align: justify;
margin-bottom: 10px;
}
#templatmeo_content_bottom {
clear: both;
padding: 40px 40px 0 200px;
background: url(../images/1templatemo_content_bottom.jpg) bottom no-repeat;
}
.section_w210 {
width: 210px;
}
.section_w210 p {
text-align: justify;
margin-bottom: 10px;
}
#templatemo_footer {
text-align: center;
padding-bottom: 30px;
}
.footer_list {
margin: 0px;
padding: 0px;
list-style: none;
}
.footer_list li {
padding: 0 10px;
display: inline;
border-right: 1px solid #333333;
}
.footer_list li a {
color: #333333;
text-decoration: underline;
}
.footer_list li a:hover {
color: #996600;
}
.footer_list .last {
border-right: none;
}
六、 如何讓學(xué)習(xí)不再盲目
第一、帶著目標(biāo)去學(xué)習(xí),無論看書報(bào)課還是各種線下活動。
首先要明確自己的學(xué)習(xí)目標(biāo)是什么,是想解決什么問題,實(shí)現(xiàn)怎樣的目標(biāo)。
第二、學(xué)習(xí)要建立個人知識體系
知識是學(xué)不完的,書籍是浩如煙海的。我們盡情徜徉其中的時候,千萬不要被海水淹死使用html制作動態(tài)網(wǎng)頁,沒有自我了。在學(xué)習(xí)過程中,我們會發(fā)現(xiàn)每一個知識點(diǎn)都是有她的邊界和背景的,我們要善于歸納整理知識
第三、學(xué)到了就要用到
有時,我們一天下來感覺學(xué)到了很多干貨,那么我們一定要將這些知識點(diǎn)和實(shí)際工作和生活聯(lián)系起來。知識和實(shí)踐相互聯(lián)系靠攏。愛學(xué)習(xí)是一件好事,但只有會學(xué)習(xí)的人,才有價值。
七、更多干貨
1.如果我的博客對你有幫助、如果你喜歡我的博客內(nèi)容,請 “點(diǎn)贊” “??評論” “收藏” 一鍵三連哦!
2.【關(guān)注我| 獲取更多源碼 | 優(yōu)質(zhì)文章】 帶您學(xué)習(xí)各種前端插件、3D炫酷效果、圖片展示、文字效果、以及整站模板 、大學(xué)生畢業(yè)HTML模板 、期末大作業(yè)模板 、等! 「在這里有好多 前端 開發(fā)者,一起探討 前端 Node 知識,互相學(xué)習(xí)」!
3.
以上內(nèi)容技術(shù)相關(guān)問題歡迎一起交流學(xué)習(xí)