HTML實(shí)例網(wǎng)頁(yè)代碼, 本實(shí)例適合于初學(xué)HTML的同學(xué)。該實(shí)例里面有設(shè)置了css的樣式設(shè)置,有div的樣式格局,這個(gè)實(shí)例比較全面,有助于同學(xué)的學(xué)習(xí),本文將介紹如何通過(guò)從頭開(kāi)始設(shè)計(jì)個(gè)人網(wǎng)站并將其轉(zhuǎn)換為代碼的過(guò)程來(lái)實(shí)踐設(shè)計(jì)。
一、網(wǎng)頁(yè)介紹
1 網(wǎng)頁(yè)簡(jiǎn)介:此作品為學(xué)生個(gè)人主頁(yè)網(wǎng)頁(yè)設(shè)計(jì)題材,HTML+CSS 布局制作,web前端期末大作業(yè),大學(xué)生網(wǎng)頁(yè)設(shè)計(jì)作業(yè)源碼,這是一個(gè)不錯(cuò)的網(wǎng)頁(yè)制作,畫(huà)面精明,代碼為簡(jiǎn)單學(xué)生水平, 非常適合初學(xué)者學(xué)習(xí)使用。
2.網(wǎng)頁(yè)編輯:網(wǎng)頁(yè)作品代碼簡(jiǎn)單,可使用任意HTML編輯軟件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html編輯軟件進(jìn)行運(yùn)行及修改編輯等操作)。
3.知識(shí)應(yīng)用:技術(shù)方面主要應(yīng)用了網(wǎng)頁(yè)知識(shí)中的: Div+CSS、鼠標(biāo)滑過(guò)特效、Table、導(dǎo)航欄效果、Banner、表單、二級(jí)三級(jí)頁(yè)面等,視頻、 音頻元素 、Flash,同時(shí)設(shè)計(jì)了Logo(源文件)所需的知識(shí)點(diǎn)。
一、網(wǎng)頁(yè)效果
二、代碼展示
1.HTML代碼
代碼如下(示例):以下僅展示部分代碼供參考~
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>千與千尋網(wǎng)</title>
<link rel="stylesheet" type="text/css" href="css/view.css"/>
</head>
<body>
<!--container start-->
<div class="container">
<!--header start-->
<div class="header" id="header">
<a href="index.html">
<img src="images/header.jpg">
</a>
</div>
<!--header end-->
<!--nav start-->
<div class="nav">
<a href="index.html">千尋首頁(yè)</a>
<a href="view1.html">劇情簡(jiǎn)介</a>
<a href="view2.html">人物簡(jiǎn)介</a>
<a href="view3.html">精彩劇照</a>
<a href="view4.html">獲獎(jiǎng)記錄</a>
<a href="view5.html">熱門(mén)影評(píng)</a>
<a href="view6.html">影片意義</a>
<a href="login.html">快速登錄</a>
<a href="register.html">粉絲注冊(cè)</a>
</div>
<!--nav end-->
<!--wrapper start-->
<div class="wrapper">
<!--plot start-->
<div class="plot">
<div class="plot_title">基本信息</div>
<div class="plot_image">
<img src="images/plot.jpg"/>
</div>
<div class="plot_info">
<dl>
<dt>中文名稱(chēng)</dt><dd>千與千尋、神隱少女(臺(tái)灣)</dd>
<dt>原版名稱(chēng)</dt><dd>千と千尋の神隠し</dd>
<dt>其他名稱(chēng)</dt><dd>Spirited Away(美國(guó))</dd>
<dt>類(lèi)型</dt><dd>劇情、動(dòng)畫(huà)、奇幻</dd>
<dt>制片地區(qū)</dt><dd>日本</dd>
<dt>對(duì)白語(yǔ)言</dt><dd>日語(yǔ)</dd>
<dt>片長(zhǎng)</dt><dd>125分鐘</dd>
<dt>等級(jí)</dt><dd>PG級(jí)</dd>
<dt>出品年份</dt><dd>2001年</dd>
<dt>出品方</dt><dd>東寶映畫(huà)</dd>
<dt>原作</dt><dd>宮崎駿</dd>
<dt>導(dǎo)演</dt><dd>宮崎駿</dd>
</dl>
<dl>
<dt>制片人</dt><dd>鈴木敏夫</dd>
<dt>編劇</dt><dd>宮崎駿</dd>
<dt>主演</dt><dd>柊瑠美,入野自由,中村彰男,夏木真理</dd>
<dt>配樂(lè)</dt><dd>久石讓</dd>
<dt>動(dòng)畫(huà)制作</dt><dd>吉卜力工作室</dd>
<dt>制作成本</dt><dd>19億日元</dd>
<dt>影片發(fā)行</dt><dd>東寶株式會(huì)社</dd>
<dt>上映日期</dt><dd>2001年7月20日(日本)</dd>
<dt>票房</dt><dd>30058915500(日元)</dd>
<dt></dt><dd>254600000美元(海外)</dd>
<dt>主要獎(jiǎng)項(xiàng)</dt><dd>第75屆奧斯卡最佳動(dòng)畫(huà)長(zhǎng)片獎(jiǎng)</dd>
<dt></dt><dd>第52屆柏林電影節(jié)金熊獎(jiǎng)</dd>
</dl>
</div>
<div class="plot_title">劇情簡(jiǎn)介</div>
<div class="plot_content">
<p>小女孩千尋和父母一起在森林里迷了路,走過(guò)了一條神bai秘的隧道之后進(jìn)入了一小鎮(zhèn)。奇怪的是整個(gè)鎮(zhèn)子一個(gè)人也沒(méi)有。千尋的父母看到有一處店鋪里存放著大量新鮮的食物,按奈不住誘惑便瘋狂地吃了起來(lái)。千尋卻感覺(jué)這里令她很不安,看到父母只顧著吃,她只得自己到別處轉(zhuǎn)悠轉(zhuǎn)悠。</p>
<p>天色漸暗,千尋忽然看到鎮(zhèn)子里有很多幽靈和妖怪出現(xiàn),嚇得趕緊去找她的父母,一到父母身邊更令她吃驚的是他們都已經(jīng)變成了豬。無(wú)助的千尋只能逃跑,而此時(shí)她的身體正在慢慢消失。幸好途中遇到少年白龍,白龍告訴千尋這里是神靈之鎮(zhèn),只接待各路的妖怪神仙,人類(lèi)是不能進(jìn)來(lái)的,如果不幸進(jìn)來(lái)的話,唯一能生存的辦法就是要在這里工作,并且要得到魔女“湯婆婆”的允許。</p>
<p>千尋好不容易才讓恐怖的湯婆婆答應(yīng)給她工作,但是按照慣例被湯婆婆用魔法剝奪了名字,成為小鎮(zhèn)里的一員,名為“千”。在千尋工作期間,因?yàn)樗煺嫔屏嫉膫€(gè)性而結(jié)交了鈴、無(wú)臉男等朋友,他們都幫助過(guò)千尋度過(guò)難關(guān)。</p>
<p>一天,千尋撞見(jiàn)一條受了重傷的小白龍,并發(fā)現(xiàn)它其實(shí)是少年白龍的化身。因?yàn)樗軠牌诺闹甘?,偷了湯婆婆的死?duì)頭兼孿生姐姐錢(qián)婆婆的寶物而遭錢(qián)婆婆追殺。錢(qián)婆婆為此還一氣之下把湯婆婆寵愛(ài)的孩子變成了小白鼠。為了救白龍,千尋答應(yīng)幫湯婆婆救回兒子,并要求湯婆婆把她的父母變回人類(lèi)。湯婆婆答應(yīng)后,千尋便拿著白龍偷來(lái)的寶物去找錢(qián)婆婆,并歸還了寶物,白龍也向錢(qián)婆婆道了歉。實(shí)際上錢(qián)婆婆也遠(yuǎn)不像別人想象中那么可怕,反倒是個(gè)通情達(dá)理的老太太,所以一切都很順利。</p>
<p>最后,湯婆婆終于放他們父女三人終于離開(kāi)了小鎮(zhèn)。千尋的父母還不知道到底發(fā)生了些什么事情,全然忘了小鎮(zhèn)的事情,而千尋卻還若有所思地回過(guò)頭去,看看身后,回想著不久前那些驚險(xiǎn)離奇的事情。</p>
</div>
</div>
<!--plot end-->
</div>
<!--wrapper end-->
<!--footer start-->
<div class="footer">
<!--footer_nav start-->
<div class="footer_nav">
<a href="view1.html">劇情簡(jiǎn)介</a>
<a href="view2.html">人物簡(jiǎn)介</a>
<a href="view3.html">精彩劇照</a>
<a href="view4.html">獲獎(jiǎng)記錄</a>
<a href="view5.html">熱門(mén)影評(píng)</a>
<a href="view6.html">影片意義</a>
<a href="login.html">快速登錄</a>
<a href="register.html">粉絲注冊(cè)</a>
<a href="#header">回到頂部</a>
</div>
<!--footer_nav end-->
<!--footer_logo start-->
<div class="footer_logo">
<img src="images/header.jpg">
</div>
<!--footer_logo end-->
<!--footer_copyright start-->
<div class="footer_copyright">
<span>Copyright @ 2021 qianyuqianxun.com All Rights Reserved. 千與千尋網(wǎng) 版權(quán)所有</span>
<span>學(xué)會(huì)<b>愛(ài)</b>,與千尋一起長(zhǎng)大!</span>
</div>
<!--footer_copyright end-->
</div>
<!--footer end-->
</div>
<!--container end-->
</body>
</html>
2.CSS代碼
@charset "utf-8";
/* element public */
*,::before,::after{margin:0;padding:0;box-sizing:border-box;
}
html body{font-size:12px;font-family:"PingFangSC-Regular","PingFang SC","Helvetica Neue","Microsoft YaHei","Hiragino Sans GB",Tahoma,Helvetica,Arial,sans-serif,"WenQuanYi Micro Hei",Verdana;line-height:1.2;color:#333;margin:0;padding:0;
}
header,nav,main,aside,footer,article,section,figure{display:block;
}
div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,select,p,blockquote,th,td,span{margin:0;padding:0;
}
input,select,textarea{outline:none;border:1px solid #d2d2d2;border-radius:2px;resize:none;
}
ul{list-style:none;
}
img{border-width:0;
}
a{text-decoration:none;cursor:pointer;
}
a:link{color:#666666;
}
a:hover{color:#1c98b0;
}
a:visited{color:#666666;
}
/*container*/
.container{width:100%;height:auto;background-color:#1c98b0;background-size:100% 100%;float:left;
}
/*header*/
.header{width:990px;height:100px;margin:30px auto 10px auto;overflow:hidden;
}
.header img{width:990px;height:100px;float:left;
}
/*nav*/
.nav{width:990px;height:40px;line-height:40px;font-size:14px;font-weight:bold;margin:30px auto 15px auto;overflow:hidden;
}
.nav a{color:#ffffff;margin-right:56px;
}
.nav a:nth-last-child(1){margin-right:0;
}
/*wrapper*/
.wrapper{width:990px;height:auto;background-color:#ffffff;margin:20px auto 10px auto;padding-bottom:20px;overflow:hidden;border-radius:5px;
}
/*plot*/
.plot{width:990px;height:auto;float:left;
}
.plot_title{width:950px;height:30px;line-height:30px;font-size:16px;font-weight:bold;color:#1c98b0;margin:20px 0 0 20px;float:left;
}
.plot_image{width:304px;height:475px;margin:20px 0 0 20px;float:left;
}
.plot_image img{width:304px;height:475px;float:left;
}
.plot_info{width:620px;height:auto;margin:15px 0 0 30px;float:left;
}
.plot_info dl{width:309px;height:auto;float:left;
}
.plot_info dl dt{width:80px;height:40px;line-height:40px;float:left;border-bottom:1px dotted #cccccc;
}
.plot_info dl dd{width:224px;height:40px;line-height:40px;float:left;border-bottom:1px dotted #cccccc;
}
.plot_content{width:950px;height:auto;margin:10px 0 0 20px;float:left;
}
.plot_content p{width:950px;height:auto;line-height:34px;font-size:14px;text-indent:25px;float:left;
}
/*person*/
.person{width:990px;height:auto;float:left;
}
.person h2{width:950px;height:30px;line-height:30px;font-size:16px;color:#1c98b0;margin:20px 0 0 20px;float:left;
}
.person article{width:302px;height:auto;background-color:#fcfcfc;margin:20px 0 0 20px;padding-bottom:20px;float:left;border-radius:5px;overflow:hidden;
}
.person article:nth-child(3n){margin-right:0;
}
.person article img{width:120px;height:120px;margin:20px 0 0 91px;float:left;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;
}
.person article h3{width:262px;height:26px;line-height:26px;text-align:center;margin:15px 0 0 20px;float:left;
}
.person article p{width:262px;height:auto;line-height:25px;font-size:13px;margin:5px 0 0 20px;float:left;overflow:hidden;
}
/*still*/
.still{width:990px;height:auto;float:left;
}
.still h2{width:950px;height:30px;line-height:30px;font-size:16px;color:#1c98b0;margin:15px 0 0 20px;float:left;
}
.still figure{width:304px;height:auto;margin:20px 0 0 20px;float:left;border-radius:5px;overflow:hidden;
}
.still figure:nth-child(3n){margin-right:0;
}
.still figure img{width:304px;height:190px;float:left;
}
.still figure figcaption{width:304px;height:50px;line-height:50px;font-size:13px;text-align:center;background-color:#f9f9f9;float:left;
}
/*prize*/
.prize{width:990px;height:auto;float:left;
}
.prize h2{width:950px;height:30px;line-height:30px;font-size:16px;color:#1c98b0;margin:20px 0 0 20px;float:left;
}
.prize article{width:465px;height:auto;margin:20px 0 0 20px;padding-bottom:16px;float:left;border-bottom:1px dashed #dddddd;
}
.prize article:nth-last-child(1){border-bottom:0;
}
.prize article:nth-last-child(2){border-bottom:0;
}
.prize article h3{width:455px;height:30px;line-height:30px;color:#37a;float:left;
}
.prize article span{height:30px;line-height:30px;font-size:14px;margin:5px 5px 0 0;float:left;
}
/*comment*/
.comment{width:990px;height:auto;float:left;
}
.comment h2{width:950px;height:30px;line-height:30px;font-size:16px;color:#1c98b0;margin:15px 0 0 20px;float:left;
}
.comment img{width:302px;height:auto;margin:20px 0 0 20px;float:left;border-radius:5px;overflow:hidden;
}
.comment img:nth-child(3n){margin-right:0;
}
/*moral*/
.moral{width:990px;height:auto;float:left;
}
.moral h2{width:950px;height:30px;line-height:30px;font-size:16px;color:#1c98b0;margin:15px 0 0 20px;float:left;
}
.moral img{width:302px;height:auto;margin:20px 0 0 20px;float:left;border-radius:5px;overflow:hidden;
}
.moral img:nth-child(3n){margin-right:0;
}
/*footer*/
.footer{width:990px;height:auto;color:#ffffff;margin:30px auto 0 auto;overflow:hidden;
}
.footer_nav{width:990px;height:40px;line-height:40px;font-size:14px;font-weight:bold;float:left;
}
.footer_nav a{color:#ffffff;margin-right:56px;
}
.footer_nav a:nth-last-child(1){margin-right:0;
}
.footer_logo{width:990px;height:100px;margin:40px 0;float:left;
}
.footer_logo img{width:990px;height:100px;float:left;
}
.footer_copyright{width:990px;height:38px;line-height:38px;float:left;
}
.footer_copyright span:nth-child(1){text-align:left;float:left;
}
.footer_copyright span:nth-child(2){text-align:right;letter-spacing:2px;float:right;
}
三、個(gè)人總結(jié)
一套合格的網(wǎng)頁(yè)應(yīng)該包含(具體可根據(jù)個(gè)人要求而定)
- 頁(yè)面分為頁(yè)頭、菜單導(dǎo)航欄(最好可下拉)、中間內(nèi)容板塊、頁(yè)腳四大部分;
- 所有頁(yè)面相互超鏈接,可到三級(jí)頁(yè)面,有5-10個(gè)頁(yè)面組成;
- 頁(yè)面樣式風(fēng)格統(tǒng)一布局顯示正常,不錯(cuò)亂,使用Div+Css技術(shù);
- 菜單美觀、醒目,二級(jí)菜單可正常彈出與跳轉(zhuǎn);
- 要有JS特效,如定時(shí)切換和手動(dòng)切換圖片新聞;
- 頁(yè)面中有多媒體元素,如gif、視頻、音樂(lè),表單技術(shù)的使用;
- 頁(yè)面清爽、美觀、大方,不雷同。
- 網(wǎng)站前端程序不僅要能夠把用戶(hù)要求的內(nèi)容呈現(xiàn)出來(lái),還要滿(mǎn)足布局良好、界面美觀、配色優(yōu)雅、表現(xiàn)形式多樣等要求。
四、精彩推薦
1.看到這里了就 【點(diǎn)贊收藏博文】
三連支持下吧,你的支持是我創(chuàng)作的動(dòng)力, 【觀注作者 |獲取更多源碼| 優(yōu)質(zhì)文章】
。
2.關(guān)注我?guī)鷮W(xué)習(xí)各種前端插件、3D炫酷效果、圖片展示、文字效果、以及整站模板 、大學(xué)生畢業(yè)HTML模板 、期末大作業(yè)模板 、等! 「在這里有好多 前端 開(kāi)發(fā)者,一起探討 前端 Node 知識(shí),互相學(xué)習(xí)」!
3.以上內(nèi)容技術(shù)相關(guān)問(wèn)題可以相互學(xué)習(xí)交流文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-463113.html
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-463113.html
到了這里,關(guān)于一個(gè)簡(jiǎn)單的HTML網(wǎng)頁(yè)(千與千尋電影) 大二學(xué)生網(wǎng)頁(yè)設(shè)計(jì)與制作 電影主題網(wǎng)頁(yè)制作的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!