?? 作者簡介: 一個熱愛把邏輯思維轉變為代碼的技術博主
作者主頁: 【主頁——獲取更多優質源碼】
web前端期末大作業: 【畢設項目精品實戰案例 (1000套) 】
程序員有趣的告白方式:【HTML七夕情人節表白網頁制作 (110套) 】
超炫酷的大屏可視化源碼:【 大屏展示大數據平臺可視化(150套) 】
HTML+CSS+JS實例代碼:
免費且實用的WEB前端學習指南:
關于作者: 歷任研發工程師,技術組長,教學總監;曾于2016年、2020年兩度榮獲CSDN年度十大博客之星。 十載寒冰,難涼熱血;多年過去,歷經變遷,物是人非。 然而,對于技術的探索和追求從未停歇。 堅持原創,熱衷分享網站制作,初心未改,繼往開來!
文章目錄
一、?網站題目
??? 抗擊疫情致敬逆行者感人類題材、致敬逆行者網頁設計作品、大學生抗疫感動專題網頁設計作業模板、等網站的設計與制作。
二、??網站描述
?抗擊疫情致敬逆行者感人類題材網頁設計作品采用DIV CSS布局制作,共多個頁面:網站首頁、感動人物、動人瞬間、感人視頻、感動圖集、感動新聞頁面。,使用CSS設置了網頁背景顏色,制作了導航區域鼠標經過熒光效果。個別頁面插入了感人MP4視頻。作品代碼采用學生簡單水平制作,DIV命名合理。
一套優質的網頁設計應該包含 (具體可根據個人要求而定)
頁面分為頁頭、菜單導航欄(最好可下拉)、中間內容板塊、頁腳四大部分。所有頁面相互超鏈接,可到三級頁面,有5-10個頁面組成。頁面樣式風格統一布局顯示正常,不錯亂,使用Div+Css技術。菜單美觀、醒目,二級菜單可正常彈出與跳轉。要有JS特效,如定時切換和手動切換圖片輪播。頁面中有多媒體元素,如gif、視頻、音樂,表單技術的使用。頁面清爽、美觀、大方,不雷同。 。不僅要能夠把用戶要求的內容呈現出來,還要滿足布局良好、界面美觀、配色優雅、表現形式多樣等要求。 三、網站介紹
網站布局方面:計劃采用目前主流的、能兼容各大主流瀏覽器、顯示效果穩定的浮動網頁布局結構。
網站程序方面:計劃采用最新的網頁編程語言HTML5+CSS3+JS程序語言完成網站的功能設計。并確保網站代碼兼容目前市面上所有的主流瀏覽器,已達到打開后就能即時看到網站的效果。
網站素材方面:計劃收集各大平臺好看的圖片素材,并精挑細選適合網頁風格的圖片網站制作,然后使用PS做出適合網頁尺寸的圖片。
網站文件方面:網站系統文件種類包含:html網頁結構文件、css網頁樣式文件、js網頁特效文件、網頁圖片文件;
網頁編輯方面:網頁作品代碼簡單,可使用任意HTML編輯軟件(如:、、 、 、、Text 、++ 等任意html編輯軟件進行運行及修改編輯等操作)。
其中:
(1)html文件包含:其中index.html是首頁、其他html為二級頁面;
(2) css文件包含:css全部頁面樣式,文字滾動, 圖片放大等;
(3) js文件包含:js實現動態輪播特效, 表單提交, 點擊事件等等(個別網頁中運用到js代碼)。
四、網站演示
五、?? 網站代碼 HTML結構代碼
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>xxtitle>
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/index.css">
<link rel="shortcut icon" href="http://www.ylcp.shop/files/files/1653121668120/images/favicon.ico">
head>
<body>
<header class="header">
<ul class="topnav">
<div class="logo">
<a href=""><img src="picture/logo.png" alt="">a>
div>
<li id="active"><a href="">首頁a>li>
<li>
<a href="hero.html">xx英雄a>
li>
<li>
<a href="hospit.html">醫院a>
li>
<li>
<a href="news.html">新聞a>
li>
<li>
<a href="contact.html">聯系a>
li>
<li>
<a href="regisn.html">注冊a>
li>
ul>
header>
<section>
<img src="picture/local.jpg" alt="">
section>
<div class="main">
<div class="hd">
<h1>抗疫精神h1>
<p class="wz1">Spirit of resistance to diseasep>
<p class="wz2">xxx新x成的xxxx精神。p>
<p>抗xxxxx,它可歌可泣、可圈可點,也無堅不摧、無往不勝。它包含:一是萬眾一心、同舟共濟的守xxx的英勇戰斗精神;三是顧全大局、壯xxx棋”精神;四是舍生忘死、逆行而上的英雄xx;五是充滿信心、敢于勝xxx。p>
<div class="icon">
<img src="picture/xia.png" alt="">
div>
div>
<div class="ct">
<h1>xxx期間h1>
<p class="wz1">During the period of resistance to diseasep>
<ul class="ct_li">
<li><img src="picture/whfc.jpeg" alt="">
<p>武漢封城p>
li>
<li><img src="picture/hjxd.jpeg" alt="">
<p>隔離消毒p>
li>
<li><img src="picture/cltw.jpg" alt="">
<p>測量體溫p>
li>
ul>
div>
<div class="end">
<h1>武漢加油h1>
<p class="wz1">Wuhan refuelingp>
<div class="img_left">
<img src="picture/zywh.jpeg" alt="">
<img src="picture/zywh2.jpeg" alt="">
<img src="picture/zywh3.jpeg" alt="">
<img src="picture/zywh4.jpeg" alt="">
<img src="picture/zywh5.jpeg" alt="">
<img src="picture/zywh6.jpeg" alt="">
div>
<div class="img_right">
<h1 class="wh">武漢h1>
<p class="wz3">武漢你一定會好起來的,到時候我們一起去吃熱干面,去武大看櫻花,去江漢路坐知音號,去東湖坐纜車,去司門口走長江大橋,加油武漢,我們與你同在。p>
<audio src="file/mu.mp3" controls="">audio>
div>
div>
div>
<div class="footer">
<p>版權所有?p>
div>
body>
html>
CSS樣式代碼
body {
margin: 0 auto;
font-size: 12px;
font-family: "微軟雅黑",arial;
line-height: 22px;
color: #141515;
background:#ece9e9;
}
div,p,input,ul,li,p,h1,h2,h3,h4 {
height: auto;
margin: 0;
; padding: 0;
vertical-align: middle;
}
li {
list-style: none;
}
a {
text-decoration: none;
color: #141515;
}
a:hover {
color: #1575be;
}
img {
border: 0;
margin: 0;
padding: 0;
}
.web {
width: 1200px;
height: auto;
overflow: hidden;
margin: 0 auto;
background: white;
}
.top {
height:93px;
}
.logo{
width: 345px;
margin-left: 80px;
}
#nav {
height: 56px;
line-height: 56px;
background: #6ccad2;
}
#nav ul {
padding: 0px;
}
#nav ul li{
width:240px;
float: left;
text-align: center;
height: 56px;
}
#nav ul li a{
font-size:20px;
color: #040404;
}
.banner{
height: 438px;
}
.box1{
width: 1020px;
height: 335px;
margin: 0 auto;
position: relative;
z-index: 999;
margin-top: -70px;
margin-bottom: 25px;
}
.box1 ul{
padding: 0px;
}
.box1 ul li{
width: 311px;
height: 335px;
margin: 0px 13px;
float: left;
}
.tit{
height: 80px;
line-height: 80px;
text-align: center;
font-size:40px;
}
.box2{
width: 900px;
height: 160px;
margin: 0 auto;
text-align: center;
line-height:40px;
font-size: 20px;
}
.box3{
width: 983px;
height: 281px;
margin: 0 auto;
}
.box3 img{
width: 310px;
height: 281px;
display: block;
float: left;
}
.box3 .wenzi{
width: 300px;
height: 281px;
line-height: 45px;
font-size: 20px;
text-indent: 2em;
float: left;
margin: 0px 30px;
}
.box4{
width: 983px;
height: 297px;
margin: 0 auto;
margin-bottom: 15px;
}
.box4 .wnx{
width: 310px;
height:267px;
font-size: 20px;
text-indent: 2em;
float: left;
line-height: 45px;
padding-top: 30px;
}
.box4 img{
width: 300px;
height: 297px;
float: left;
margin: 0px 30px;
}
.foot{
height: 90px;
background: #6ccad2;
line-height: 90px;
font-size: 20px;
text-align: center;
}
/*---疫情簡介---*/
.jbanner{
height: 264px;
}
.jneirong{
width: 983px;
height: auto;
overflow: hidden;
margin: 0 auto;
padding-bottom: 40px;
}
.jtitile{
width: 230px;
height: 60px;
border-bottom: #fe6472 3px solid;
padding-left: 70px;
background: url(../img/img8.jpg) no-repeat 0px 10px;
font-size: 24px;
line-height: 60px;
margin-top: 35px;
margin-bottom: 40px;
}
.jneirong p{
line-height: 30px;
font-size: 18px;
text-indent: 2em;
}
.jneirong img{
display: block;
margin: 0 auto;
margin-top: 10px;
margin-bottom: 10px;
}
/*---疫情資訊---*/
.news{
width: 100%;
}
.news ul{
padding: 0px;
}
.news ul li{
height: 235px;
margin-bottom: 40px;
}
.news ul li img{
float: left;
margin: 0px;
margin-right:25px;
}
.news ul li h1{
height: 50px;
line-height: 50px;
font-size: 22px;
font-weight: normal;
}
.news ul li p{
line-height: 30px;
font-size: 16px;
margin-bottom: 15px;
text-indent: 0em;
}
.news ul li h2{
height: 40px;
font-size: 14px;
font-weight: normal;
line-height: 40px;;
}
.news ul li h2 img{
float: left;
margin-top: 20px;
}
/*---圖鑒---*/
.tujian{
width:100%;
}
.tujian ul{
padding: 0px;
}
.tujian ul li{
width: 240px;
height: 216px;
float: left;
text-align: center;
}
.tujian ul li img{
width:220px;
}
/*---留言---*/
.ltitile{
width:100%;
height: 60px;
border-bottom: #fe6472 3px solid;
padding-left: 70px;
background: url(../img/img8.jpg) no-repeat 0px 10px;
font-size: 24px;
line-height: 60px;
margin-top: 35px;
margin-bottom: 40px;
}
.liuyan{
width: 100%;
height: 646px;
}
.l-left{
width: 470px;
height: 570px;
float: left;
padding-top: 60px;
margin-right: 50px;
}
.l-right{
width: 460px;
height: 530px;
float: left;
padding-top:110px;
}
.rtit{
width: 245px;
height: 90px;
margin: 0 auto;
background: url(../img/img24.jpg) no-repeat;
text-align: center;
line-height: 90px;
font-size: 40px;
margin-bottom: 40px;
}
.wenbk{
width: 450px;
height: 260px;
border: #040404 2px solid;
margin-bottom: 30px;
}
.anniu{
height: 50px;
}
.btn1{
width: 138px;
height: 47px;
background: url(../img/img25.jpg) no-repeat;
float: left;
margin-left: 40px;
border: none;
}
.btn2{
width: 132px;
height: 47px;
background: url(../img/img26.jpg) no-repeat;
float: left;
margin-left: 120px;
border: none;
}
/*---內容頁---*/
.tit{
height: 100px;
padding-top: 20px;
border-bottom:#FE6472 3px solid;
margin-bottom: 20px;
}
.tit h1{
height: 65px;
line-height: 65px;
font-size: 24px;
font-weight: normal;
text-align: center;
}
.tit h2{
height: 35px;
line-height: 35px;
font-size: 14px;
font-weight: normal;
text-align: right;
}
六、 如何讓學習不再盲目
21年程序員總結給編程菜鳥的16條忠告
入門期間不要盲目看太多書,找一本網上或身邊有經驗程序員推薦的教材,先系統的學習。多看幫助文檔,幫助文檔就像一個游戲的玩法說明通關秘籍,該看就看別太自信。菜鳥容易被對象、屬性、方法等詞匯迷惑?那是你連最基礎知識都還沒掌握。不要忽視沒一個看起來不起眼的問題,經常總結做到舉一反三。沒積累足夠知識和經驗前,你是開發不出一個完整項目的。把最新技術掛在嘴邊,還不如把過時技術牢記心中。活到老學到老,只有一招半式是闖不了江湖的。看得懂的書,仔細看;看不懂的書,硬著頭皮也要看完。書讀百遍其義自見,別指望讀一遍就能掌握。請把教程里的例子親手實踐下,即使案例中有完整源碼。把在教程中看到的有意義的例子擴充;并將其切實的運用到自己的工作中。不要漏掉教程中任何一個習題——請全部做完并做好筆記。水平是在不斷的實踐中完善和發展的,你與大牛差的只是經驗的積累。每學到一個難點的時候,嘗試對朋友或網上分享你的心得,讓別人都能看得懂說明你真的掌握。做好保存源文件的習慣,這些都是你的知識積累。遇到問題不要張口就問,要學會自己找答案,比如、百度和上都有很多編程相關資料,你只要輸入關鍵字就能找到你的答案。 七、更多干貨
1.如果我的博客對你有幫助、如果你喜歡我的博客內容,請 “點贊” “??評論” “收藏” 一鍵三連哦!
2.【關注我| 獲取更多源碼 | 優質文章】 帶您學習各種前端插件、3D炫酷效果、圖片展示、文字效果、以及整站模板 、大學生畢業HTML模板 、期末大作業模板 、等! 「在這里有好多 前端 開發者,一起探討 前端 Node 知識,互相學習」!
3.
以上內容技術相關問題歡迎一起交流學習
*請認真填寫需求信息,我們會在24小時內與您取得聯系。