📂文章目錄
- 二、📚網站介紹
- 三、🔗網站效果
- ▶️1.視訊示範
- 🧩 2.圖檔示範
- 四、💒 網站代碼
- 🧱HTML結構代碼
- 🏠CSS樣式代碼
- 五、🎁更多源碼
二、📚網站介紹
📔網站布局方面:計劃采用目前主流的、能相容各大主流浏覽器、顯示效果穩定的浮動網頁布局結構。
📓網站程式方面:計劃采用最新的網頁程式設計語言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代碼)。
三、🔗網站效果
▶️1.視訊示範
J26JP 二十四節氣 5頁 無js 浮動定位
🧩 2.圖檔示範
四、💒 網站代碼
🧱HTML結構代碼
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/index.css" rel="stylesheet" type="text/css">
<title></title>
</head>
<body>
<!--header begin-->
<div class="header">
<h1><strong>二十四節氣</strong> <em>智慧的結晶</em></h1>
<hr size="2" color="#d1d1d1" width="980px">
</div>
<!--header end-->
<!--fenlei begin-->
<div class="fenlei">
<h2> <a href="">首頁</a> <a href="cun.html">春雨驚春清谷天</a> <a href="xia.html">夏滿芒夏暑相連</a> <a href="qiu.html">秋處露秋寒霜降</a> <a href="dong.html">冬雪雪冬小大寒</a> </h2>
<img style="width: 100%;" src="picture/1(2).png">
<br><br>
<p>春雨驚春清谷天,夏滿芒夏暑相連。</p>
<p>秋處露秋寒霜降,冬雪雪冬小大寒。</p>
<p>每月兩節不變更,最多相差一兩天。</p>
<p>上半年來六廿一,下半年是八廿三。</p>
<br>
</div>
<!--fenlei end-->
<!--bestseller begin-->
<div class="bestseller">
<img src="picture/1.png" alt="">
<p class="txt">“二十四節氣”與“十二月建”是幹支曆的基本内容,十二月建是依據二十四節氣而來的節氣月。以北鬥七星鬥柄所指的方位作為确定月份的标準,稱為鬥建(月建)。鬥柄順時針旋轉一圈為一周期,謂之一“歲”。每歲之中,鬥柄旋轉而依次指為十二辰,稱為“十二月建”。十二月建分别為:正月建寅,二月建卯,三月建辰,四月建巳,五月建午,六月建未,七月建申,八月建酉</p>
<br>
</div>
<!--bestseller end-->
<!--footer begin-->
<div class="shouhou">
</div>
<div class="boss">
<img src="picture/1.jpg" alt="">
<img src="picture/2.jpg" alt="">
<img src="picture/3.jpg" alt="">
<img src="picture/4.jpg" alt="">
<img src="picture/5.jpg" alt="">
<img src="picture/6.jpg" alt="">
</div>
<div class="boss">
<p style="height: 60px;"> 春雨驚春清谷天,夏滿芒夏暑相連。</p>
<p style="height: 60px;"> 秋處露秋寒霜降,冬雪雪冬小大寒。</p>
<p style="height: 60px;"> 每月兩節不變更,最多相差一兩天。</p>
<p style="height: 60px;"> 上半年來六廿一,下半年是八廿三。</p>
</div>
</body>
</html>
🏠CSS樣式代碼
/* CSS Document */
*{
margin:0;
padding:0;
}
body{
font-family: "楷體";
font-size: 16px;
color: #a5a5a5;
background-color: #ededed;
}
.header{
font-family: "微軟雅黑";
line-height: 86px;
color: #a5a5a5;
text-align: center;
height: 86px;
width: 980px;
margin:0 auto 7px;
}
.header h1{
font-weight: normal;
}
.header strong{
font-size: 30px;
font-weight: normal;
}
.header em{
font-size: 14px;
font-style: normal;
}
.fenlei{
width: 1300px;
margin:0 auto;
}
.fenlei h2{
font-family: "微軟雅黑";
font-size: 14px;
color: #a5a5a5;
line-height: 42px;
height: 42px;
}
.fenlei p{
font-size: 18px;
line-height: 30px;
text-align: center;
}
.bestseller{
width: 1000px;
margin:0 auto;
}
.bestseller .txt{
width: 400px;
float: right;
line-height: 30px;
text-indent: 2em;
}
.bestseller .txt em{
font-style: normal;
text-decoration: underline;
}
.shouhou{
clear: both;
}
.boss{
width: 1200px;
display: flex;
margin:0 auto;
}
.boss h3,.boss p{
text-indent: 2em;
}
.boss h3{
font-family: "微軟雅黑";
font-size: 18px;
line-height: 30px;
font-weight: normal;
height: 30px;
}
.boss p{
font-size: 14px;
font-style: italic;
line-height: 26px;
}
.duo{
position: fixed;
right: 3%;
bottom:3%;
}
.fanhui{
text-decoration: none;
color: #999;
}
五、🎁更多源碼
1.如果我的部落格對你有幫助
請 “👍點贊” “✍️評論” “💙收藏”
一鍵三連哦!