📂文章目錄
- 二、📚網站介紹
- 三、🔗網站效果
- ▶️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.視訊示範
K17JP-籃球網頁帶會員系統資料庫單視訊js(6頁)
🧩 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" />
<title>籃球首頁</title>
<link href="css/public.css" rel="stylesheet" type="text/css" />
<link href="css/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-----頭部開始------->
<div class="top" name="top">
<a href="index.html"><img src="images/logo.png" /></a>
</div>
<!---nav開始---->
<div class="daohang">
<div id="nav">
<ul>
<li><a href="index.html">首頁</a></li>
<li><a href="about.html">籃球簡介</a></li>
<li><a href="superstar.html">籃球明星</a></li>
<li><a href="changshi.html">籃球常識</a></li>
<li><a href="zhuce.html">會員注冊</a></li>
<li><a href="denglu.html">會員登陸</a></li>
</ul>
</div>
</div>
<!---nav結束---->
<!-----banner------->
<div class="box" id="box">
<div class="inner">
<!--輪播圖-->
<ul>
<li><a href="#"><img src="images/banner1.jpg" alt=""></a></li>
<li><a href="#"><img src="images/banner2.jpg" alt=""></a></li>
<li><a href="#"><img src="images/banner3.jpg" alt=""></a></li>
</ul>
<ol class="bar">
</ol>
<!--左右焦點-->
<div id="arr">
<span id="left">
<
</span>
<span id="right">
>
</span>
</div>
</div>
</div>
<script type="text/javascript" src="js/banner.js"></script>
<!-----頭部結束------->
<!-----main開始------->
<div class="main">
<div class="left">
<div class="title">
<p>Changchun, Jilin Province</p>
<p>籃球運動</p>
</div>
<iframe height=468 width=380 src='http://player.youku.com/embed/XNDM3Nzc4NTYxNg==' frameborder=0 'allowfullscreen'></iframe>
</div>
<div class="right">
<div class="box1">
<div class="wen">
<a href="about.html"><h1>籃球簡介</h1></a>
<p>籃球,英文(basketball),起源于美國馬薩諸塞州,是1891年12月21日由詹姆斯·奈史密斯創造,是奧運會核心比賽項目,是以手為中心的身體對抗性體育運動 。</p>
<p> 1891年12月21日,由美國馬薩諸塞州斯普林菲爾德基督教青年會訓練學校(現譯名為美國春田大學,Springfield College)體育教師詹姆士·奈史密斯發明 。1896年,籃球運動傳入中國,并且2002年姚明以狀元的身份入選NBA,開啟了中國籃球新的狂潮。
</p>
</div>
<img src="images/ri01.jpg" />
</div>
<div class="box2">
<img src="images/ri02.jpg" />
<div class="wen">
<a href="#"><h1>籃球常識</h1></a>
<p> 籃球比賽中的規則較多,且相當複雜,共有93條。全隊7次犯規規則和一加一罰球規則:比賽每半時,一個隊的隊員侵人犯規和技術犯規次數累計已達7次,此後這個隊的任何一個隊員再發生侵人犯規或技術犯規,均将執行一加一罰球規則,判給被侵犯的對方隊員罰球一次,如罰球成功,由這個隊員再追加罰球一次;如第一次罰球不中,比賽應繼續進行,不再給予追加罰球的機會。如罰球者罰出的球未觸及籃圈,則判為違例,由對方在邊線擲界外球。</p>
</div>
</div>
</div>
</div>
<!-----foot------->
<div class="bottom">
<div class=" daoh">
<ul>
<li><a href="index.html">首頁</a></li>
<li><a href="about.html">籃球簡介</a></li>
<li><a href="superstar.html">籃球明星</a></li>
<li><a href="changshi.html">籃球常識</a></li>
<li><a href="zhuce.html">會員注冊</a></li>
<li><a href="denglu.html">會員登陸</a></li>
</ul>
</div>
<img src="images/logo.png" />
</div>
</body>
</html>
🏠CSS樣式代碼
@charset "utf-8";
/* CSS Document */
.main{ width:1366px; height:590px; margin:0 auto; }
.box {
width: 1366px;
height:450px;
margin:0 auto;
}
.inner{
width: 1366px;
height:450px;
position: relative;
overflow: hidden;
}
.inner img{
width: 1366px;
height:450px;
vertical-align: top
}
.inner ul {
width: 1000%;
position: absolute;
list-style: none;
left:0;
top: 0;
margin:0px;
padding:0px;
}
.inner li{
float: left;
}
ol {
position: absolute;
height: 20px;
right: 20px;
bottom: 12px;
text-align: center;
padding: 5px;
}
ol li{
display: block;
width: 20px;
height: 20px;
line-height: 20px;
background-color: #fff;
margin: 5px;
cursor: pointer;
}
ol .current{
background-color: red;
}
#arr{
display: block;
}
#arr span{
width: 30px;
height: 40px;
position: absolute;
left: 14px;
top: 156px;
margin-top: -20px;
background: #fff;
cursor: pointer;
line-height: 40px;
text-align: center;
font-weight: bold;
font-family: '黑體';
font-size: 30px;
color: #000;
opacity: 0.5;
border: 1px solid #fff;
}
#arr #right {
right: 18px;
left: auto;
}
.left{ width:380px; height:570px; float:left; margin-right:15px; }
.left .title{ width:370px; padding-left:10px; height:76px; padding-top:20px; background:#f8f8f8; margin-bottom:5px; }
.left .title p{ font-size:18px; color:#3c3c3c;}
.right{ width:921px; padding:25px; height:540px; float:left; background:#f8f8f8}
.right .box1{ width:921px; height:250px; }
.right .box1 img{ width:440px; height:248px; float:right; margin-left:30px;}
.box1 .wen{ width:450px; float:left;}
.box1 h1{ color: #3c3c3c;
font-size: 24px;
width: 100%;
margin-bottom:20px;}
.box1 p{ display: block;
font-size: 16px;
width: 100%;
line-height:27px;}
.right .box2{ width:921px; height:257px; margin-top:30px;}
.right .box2 img{ width:447px; height:253px; float:left; margin-right:30px;}
.box2 .wen{ width:440px; float:left;}
.box2 h1{ color: #3c3c3c;
font-size: 24px;
width: 100%;
margin-bottom:20px;}
.box2 p{ display: block;
font-size: 16px;
width: 100%;
line-height:27px;}
五、🎁更多源碼
1.如果我的部落格對你有幫助
請 “👍點贊” “✍️評論” “💙收藏”
一鍵三連哦!