📂文章目錄
- 一、👨🎓網站題目
- 二、✍️網站描述
- 三、📚網站介紹
- 四、🌐網站效果
- 五、🔧 網站代碼
- 🧱HTML結構代碼
- 💒CSS樣式代碼
- 六、🥇 如何讓學習不再盲目
- 七、🎁更多幹貨
一、👨🎓網站題目
🌲環境保護、🌳 保護地球、🌴 校園環保、🌵垃圾分類、🚵🏼綠色家園、等網站的設計與制作。
二、✍️網站描述
⭐ 總結了一些學生網頁制作的經驗:一般的網頁需要融入以下知識點:div+css布局、浮動、定位、進階css、表格、表單及驗證、js輪播圖、音頻 視訊 Flash的應用、ul li、下拉導航欄、滑鼠劃過效果等知識點,網頁的風格主題也很全面:如愛好、風景、校園、美食、動漫、遊戲、咖啡、音樂、家鄉、電影、名人、商城以及個人首頁等主題,學生、新手可參考下方頁面的布局和設計和HTML源碼(有用點贊△)
🏅 一套A+的網頁應該包含 (具體可根據個人要求而定)
- 頁面分為頁頭、菜單導航欄(最好可下拉)、中間内容闆塊、頁腳四大部分。
- 所有頁面互相超連結,可到三級頁面,有5-10個頁面組成。
- 頁面樣式風格統一布局顯示正常,不錯亂,使用Div+Css技術。
- 菜單美觀、醒目,二級菜單可正常彈出與跳轉。
- 要有JS特效,如定時切換和手動切換圖檔輪播。
- 頁面中有多媒體元素,如gif、視訊、音樂,表單技術的使用。。
- 頁面清爽、美觀、大方,不雷同。 。
- 不僅要能夠把使用者要求的内容呈現出來,還要滿足布局良好、界面美觀、配色優雅、表現形式多樣等要求。
三、📚網站介紹
📔網站布局方面:計劃采用目前主流的、能相容各大主流浏覽器、顯示效果穩定的浮動網頁布局結構。
📓網站程式方面:計劃采用最新的網頁程式設計語言HTML5+CSS3+JS程式語言完成網站的功能設計。并確定網站代碼相容目前市面上所有的主流浏覽器,已達到打開後就能即時看到網站的效果。
📘網站素材方面:計劃收集各大平台好看的圖檔素材,并精挑細選适合網頁風格的圖檔,然後使用PS做出适合網頁尺寸的圖檔。
📒網站檔案方面:網站系統檔案種類包含:html網頁結構檔案、css網頁樣式檔案、js網頁特效檔案、images網頁圖檔檔案;
📙網頁編輯方面:網頁作品代碼簡單,可使用任意HTML編輯軟體(如:
Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++
等任意html編輯軟體進行運作及修改編輯等操作)。
其中:
(1)📜html檔案包含:其中index.html是首頁、其他html為二級頁面;
(2)📑 css檔案包含:css全部頁面樣式,文字滾動, 圖檔放大等;
(3)📄 js檔案包含:js實作動态輪播特效, 表單送出, 點選事件等等(個别網頁中運用到js代碼)。
四、🌐網站效果
五、🔧 網站代碼
🧱HTML結構代碼
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div class="main" >
<div class="content12">
<div class="daohang">
<div class="img"><img src="images/1.jpg"></div>
<ul>
<li class="active"><a href="index.html">首頁</a>
</li>
<li ><a href="fazhanqingkuang.html">發展情況</a></li>
<li ><a href="chanshengyuanyin.html">産生原因</a></li>
<li ><a href="lajizhonglei.html">垃圾種類</a></li>
<li ><a href="chanshengxiaoguo.html">産生效果</a></li>
<li ><a href="yonghudenglu.html">使用者登入</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="content12">
<div class="guanggaotupian">
<div class="img">
<img src="images/2.jpg"></div>
</div>
</div>
<div class="clear"></div>
<div class="content12">
<div class="taitou">
<div class="title">
<strong>介紹</strong> <i>JIESHAO</i>
</div>
</div>
<div class="js">
<div class="desc">
垃圾分類(Garbage classification),一般是指按一定規定或标準将垃圾分類儲存、投放和搬運,進而轉變成公共資源的一系列活動的總稱。<br><br>垃圾分類的目的是提高垃圾的資源價值和經濟價值,減少垃圾處理量和處理裝置的使用,降低處理成本,減少土地資源的消耗,具有社會、經濟、生态等幾方面的效益。<br><br>垃圾在分類儲存階段屬于公衆的私有品,垃圾經公衆分類投放後成為公衆所在小區或社群的區域性公共資源,垃圾分類搬運到垃圾集中點或轉運站後成為沒有排除性的公共資源。從國内外各城市對生活垃圾分類的方法來看,大多都是根據垃圾的成分、産生量,結合本地垃圾的資源利用和處理方式等來進行分類的。<br><br>2020年5月1日起,《北京市生活垃圾管理條例》實施
。
</div>
</div>
</div>
<div class="clear"></div>
<div class="content12">
<div class="taitou">
<div class="title">
<strong>垃圾種類</strong> <i>LAJIZHONGLEI</i>
</div>
</div>
<div class="ljzl">
<ul>
<li>
<div class="img"><img src="images/3.jpg"></div>
<div class="text">
<div class="title">可回收物</div>
<div class="clear"></div>
<div class="desc">可回收物主要包括廢紙、塑膠、玻璃、金屬和布料五大類。廢紙:主要包括報紙、期刊、圖書、各種包裝紙等。但是,要注意紙巾和廁所紙由于水溶性太強不可回收。</div>
<div class="sdesc"></div>
</div>
</li>
<li>
<div class="img"><img src="images/4.jpg"></div>
<div class="text">
<div class="title">其他垃圾</div>
<div class="clear"></div>
<div class="desc">其他垃圾(上海稱幹垃圾)包括除上述幾類垃圾之外的磚瓦陶瓷、渣土、衛生間廢紙、紙巾等難以回收的廢棄物及塵土、食品袋(盒)。</div>
<div class="sdesc"></div>
</div>
</li>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="content12">
<div class="taitou">
<div class="title">
<strong>産生原因</strong> <i>CHANSHENGYUANYIN</i>
</div>
</div>
<div class="csyy">
<div class="img">
<img src="images/5.jpg">
</div>
<div class="desc">
<br><br>
一圖了解生活中的垃圾分類
。<br><br>每個人每天都會扔出許多垃圾,在一些垃圾管理較好的地區,大部分垃圾會得到衛生填埋、焚燒、堆肥等無害化處理,而更多地方的垃圾則常常被簡易堆放或填埋,導緻臭氣蔓延,并且污染土壤和地下水。<br><br>垃圾無害化處理的費用是非常高的,根據處理方式的不同,處理一噸垃圾的費用約為一百元至幾百元不等。人們大量地消耗資源,大規模生産,大量地消費,又大量地生産着垃圾。</div>
<div class="slist">
<img src="images/6.jpg" class="simg">
<img src="images/7.jpg" class="simg">
<img src="images/8.jpg" class="simg">
</div>
</div>
</div>
<div class="clear"></div>
<div class="content12">
<div class="dibu">
<div class="desc">
垃圾分類
</div>
</div>
</div>
<div class="clear"></div></div></body></html>
💒CSS樣式代碼
@charset "utf-8";
*{margin:0;padding:0;}
body{margin:0 auto}
.clear{ clear:both;}
a{color:#333;text-decoration:none;}
a:hover{text-decoration:underline;}
li{list-style-type:none;}
img{width:auto;max-width:100%;}
.main{width:1200px;margin:0 auto;overflow:visible;}
.content12{width:1200px;margin:0 auto;}
.daohang {
width:1200px;background:#006030;float:left;
}
.daohang .img{
width:226px;
float:left;
}
.daohang .img img{
width:200px;height:90px;
float:le
.csyy
{
width:1200px;}
.csyy .img
{
text-align:center;
}
.csyy .img
{
margin:10px auto;
}
.csyy img
{
height:600px;}
}
.yonghubiaodan select{
width:1180px;text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
height:40px;height:40px;line-height:40px;border-bottom-color:#000000;border-bottom-style:solid;border-bottom-width:1px;border-top-color:#000000;border-top-style:solid;border-top-width:1px;border-left-color:#000000;border-left-style:solid;border-left-width:1px;border-right-color:#000000;border-right-style:solid;border-right-width:1px;
}
.yonghubiaodan checkbox,radio{
text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
height:40px;height:40px;line-height:40px;border-bottom-color:#000000;border-bottom-style:solid;border-bottom-width:1px;border-top-color:#000000;border-top-style:solid;border-top-width:1px;border-left-color:#000000;border-left-style:solid;border-left-width:1px;border-right-color:#000000;border-right-style:solid;border-right-width:1px;
}
.yonghubiaodan input{
width:1180px;text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
height:40px;line-height:40px;border-bottom-color:#000000;border-bottom-style:solid;border-bottom-width:1px;border-top-color:#000000;border-top-style:solid;border-top-width:1px;border-left-color:#000000;border-left-style:solid;border-left-width:1px;border-right-color:#000000;border-right-style:solid;border-right-width:1px;
}
.yonghubiaodan textarea{
width:1180px;text-align:left;
margin:0px 10px;
overflow:hidden;
vertical-align:middle;
width:300px;
height:100px;line-height:100px;border-bottom-color:#000000;border-bottom-style:solid;border-bottom-width:1px;border-top-color:#000000;border-top-style:solid;border-top-width:1px;border-left-color:#000000;border-left-style:solid;border-left-width:1px;border-right-color:#000000;border-right-style:solid;border-right-width:1px;
}
.yonghubiaodan .title
{
margin:0px 10px;
}
.yonghubiaodan button{
width:1180px;
padding:5px 10px;
margin:10px 0px 0px 10px;
text-align:center;
line-height:40px;height:40px;line-height:40px;border-bottom-color:#000000;border-bottom-style:solid;border-bottom-width:1px;border-top-color:#000000;border-top-style:solid;border-top-width:1px;border-left-color:#000000;border-left-style:solid;border-left-width:1px;border-right-color:#000000;border-right-style:solid;border-right-width:1px;
}
.xiangqingshuoming .title{
margin:10px 0px;
padding:15px;
border-radius:15px;
text-align:center;
font-size:20px;
font-weight:bold;
}
.xiangqingshuoming .desc{
}
.xiangqingshuoming .img{
text-align:center;
}