📂文章目录

  • ​​二、📚网站介绍​​
  • ​​三、🔗网站效果​​
  • ​​▶️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.视频演示

C111SJ-名鞋商城js三级页面表单(7页)

🧩 2.图片演示


四、💒 网站代码

🧱HTML结构代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>首页</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">.pinpai tr, td {
border:#dad9d9 1px solid;
}</style>
</head>
<body>
<div class="top">
<div class="top-ner">
<div class="welcome">欢迎您登录名鞋商城!</div>
<div class="dlzc">
<a href="login.html">登录</a>|
<a href="zhuce.html">注册</a>
</div>
</div>
</div>
<div class="top2">
<div class="logo">
<a href="index.html"><img src="img/logo.jpg" /></a>
</div>
<div class="sous">
<form>
<div class="fd"><img src="img/sous.jpg"></div>
<input class="input" type="text" value="耐克跑鞋" />
<button class="btn" type="submit">搜索</button>
</form>
</div>
<a href="gouwuche.html">
<div class="gouwuche">
购物车:0件
</div>
</a>
</div>
<div id="nav">
<ul>
<li class="hot"><a href="list.html">所有产品分类</a></li>
<li><a href="index.html">首页</a></li>
<li><a href="#">运动鞋</a></li>
<li><a href="#">精品皮鞋</a></li>
<li><a href="#">休闲鞋</a></li>
<li><a href="#">配件</a></li>
</ul>
</div>
<div class="banner">
<img src="img/banner.jpg" />
</div>
<div class="main">
<div class="title">
HOUT ALBUM / 热买专辑
</div>
<div class="div1">
<img src="img/img1.jpg" />
<img src="img/img2.jpg" />
<img class="mar0" src="img/img3.jpg" />
</div>
<div class="div2">
<img src="img/img4.jpg" />
<img class="mar0" src="img/img5.jpg" />
</div>
<div class="div3">
<img src="img/img6.jpg" />
<img src="img/img7.jpg" />
<img class="mar0" src="img/img8.jpg" />
</div>
<div class="div4">
<img src="img/img9.jpg" />
</div>
<div class="title">
NEW PRODUCT / 潮流尖货
</div>
<div class="div5">
<ul>
<li>
<a href="xiangqing.html"><img src="img/img11.jpg"></a>
<a href="xiangqing.html"><h1>LINING李宁新款男鞋高达野外跑鞋运动鞋ARDL003</h1></a>
<h2>
<img src="img/img12.jpg">256元
<a href="gouwuche.html"><span></span></a>
</h2>
</li>
<li>
<a href="xiangqing.html"><img src="img/img30.jpg"></a>
<a href="xiangqing.html"><h1>LINING李宁女子辉煌96复古经典跑鞋女时尚休闲透气运动鞋ARCL022</h1></a>
<h2>
<img src="img/img12.jpg">129元
<a href="gouwuche.html"><span></span></a>
</h2>
</li>
<li>
<a href="xiangqing.html"><img src="img/img31.jpg"></a>
<a href="xiangqing.html"><h1>斯凯奇童鞋17新款男婴童0-4岁网面透气休闲运动鞋95052N</h1></a>
<h2>
<img src="img/img12.jpg">99元
<a href="gouwuche.html"><span></span></a>
</h2>
</li>
<li>
<a href="xiangqing.html"><img src="img/img32.jpg"></a>
<a href="xiangqing.html"><h1>LINING李宁跑步鞋男鞋新款光梭一体织男士晨跑春季运动鞋ARBM119</h1></a>
<h2>
<img src="img/img12.jpg">219元
<a href="gouwuche.html"><span></span></a>
</h2>
</li>
<li>
<a href="xiangqing.html"><img src="img/img33.jpg"></a>
<a href="xiangqing.html"><h1>NIKE耐克女鞋跑步鞋ZOOM系列气垫透气运动鞋942855</h1></a>
<h2>
<img src="img/img12.jpg">369元
<a href="gouwuche.html"><span></span></a>
</h2>
</li>
<li>
<a href="xiangqing.html"><img src="img/img34.jpg"></a>
<a href="xiangqing.html"><h1>adidas阿迪达斯男子跑步鞋轻便跑步休闲运动鞋AQ0359</h1></a>
<h2>
<img src="img/img12.jpg">432元
<a href="gouwuche.html"><span></span></a>
</h2>
</li>
<li>
<a href="xiangqing.html"><img src="img/img35.jpg"></a>
<a href="xiangqing.html"><h1>Skechers斯凯奇男鞋跑步鞋一脚套网面舒适运动鞋54359</h1></a>
<h2>
<img src="img/img12.jpg">249元
<a href="gouwuche.html"><span></span></a>
</h2>
</li>
<li>
<a href="xiangqing.html"><img src="img/img36.jpg"></a>
<a href="xiangqing.html"><h1>New Balance/NB女鞋跑步鞋FLSH系列运动鞋WFLSHLB2</h1></a>
<h2>
<img src="img/img12.jpg">182元
<a href="gouwuche.html"><span></span></a>
</h2>
</li>

</ul>
</div>
<div class="div6">
<table class="pinpai" cellspacing="0" width="100%" height="263" border="3">
<tr>
<td><img src="img/img13.jpg"></td>
<td><img src="img/img14.jpg"></td>
<td><img src="img/img15.jpg"></td>
<td><img src="img/img16.jpg"></td>
</tr>
<tr>
<td><img src="img/img17.jpg"></td>
<td><img src="img/img18.jpg"></td>
<td><img src="img/img19.jpg"></td>
<td><img src="img/img20.jpg"></td>
</tr>
</table>

</div>

</div>
<div class="foot">
<div class="foot-ner">
<div class="fv1">
<h1>客服热线:</h1>
<h2>400-888 8888</h2>
<div class="ewm">
<img src="img/ewm1.png" />
<img src="img/ewm2.png" />
</div>
</div>
<div class="fv2">
<div class="box">
<h1>支付方式</h1>
<p>在线支付</p>
<p>货到付款</p>
<p>发票说明</p>
</div>
<div class="box">
<h1>售后服务</h1>
<p>退货说明</p>
<p>换货说明</p>
<p>服务承诺</p>
</div>
<div class="box">
<h1>物流配送</h1>
<p>合作快递</p>
<p>运费说明</p>
<p>配送时间</p>
</div>
</div>
<div class="fv3">
<img src="img/foot1.png" />
</div>
</div>
</div>
</body>
</html>

🏠CSS样式代码

@charset "utf-8";
/* CSS Document */
body {
margin: 0 auto;
font-size: 16px;
font-family: "宋体";
line-height: 22px;
color: #131313;
}

div,p,input,ul,li,p,h1,h2,h3,h4,h5,h6,dl,dt,dd {
height: auto;
margin: 0;
; padding: 0;
vertical-align: middle;
list-style: none;
}

img {
border: 0;
margin: 0;
padding: 0;
}

a {
color: #131313;
text-decoration: none;
}

a:link {
color: #333;
}

a:hover {
color: #d5142a;
text-decoration: none;
overflow: hidden;
}
/*---网页开始-----*/
.top{
height: 45px;
background: #eae9e9;
width: 100%;
}
.top-ner{
width: 1300px;
height: 45px;
margin: 0 auto;
}
.welcome{
line-height: 45px;
width: 500px;
float: left;
}
.dlzc{
width: 120px;
height: 45px;
line-height: 45px;
float: right;
}
.dlzc a{
margin: 0px 10px;
}
.top2{
width: 1300px;
height: 133px;
margin: 0 auto;
}
.logo{
width: 263px;
height: 110px;
float: left;
margin-left: 67px;
margin-top: 20px;
}
.sous{
width: 325px;
height: 40px;
border:#eaeaea 1px solid;
margin-left: 254px;
margin-top: 50px;
float: left;
}
.fd{
width: 35px;
height: 35px;
float: left;
}
.input{
width: 218px;
height: 37px;
color:#5d5c5c;
float: left;
border: none;
}
.btn{
width: 70px;
height: 37px;
background: #4f4e4e;
line-height: 37px;
text-align: center;
float: left;
color:white;
}
.gouwuche{
width: 102px;
height: 52px;
float: left;
margin-left: 139px;
margin-top: 45px;
background: url(../img/gwc.jpg) no-repeat;
padding-left: 74px;
line-height: 52px;
font-size: 16px;
color: #fdfdfd;
}
#nav{
height: 63px;
width: 100%;
background: #a21f25;
}
#nav ul{
width: 1220px;
padding: 10px 40px;
display: block;
height: 40px;
margin: 0 auto;
}
#nav ul li{
width:170px;
height: 40px;
float: left;
margin: 0px 15px;
text-align: center;
}
#nav ul li a{
line-height: 40px;
font-size: 20px;
color: #fdfbfb;
}

.gright2 p{
height: 27px;
line-height: 27px;
font-size: 14px;
padding-left: 45px;
}
.gright2 h3{
height: 35px;
line-height: 35px;
padding-left:45px;
font-size: 20px;
color: #ed3029;
font-weight: normal;
}

更多推荐

HTML+CSS+JS购物网站制作【学生HTML静态网页作业作品】