第一个项目:静态购物网站项目制作

静态网页制作

第一个月的学习基本结束,对于一些CSS样式,html的基础,我已经基本掌握,就这些基础上去进行一个静态网页项目的规划,虽然很简单,但是是我学习html5的一个小里程碑。
屁话不多,上代码:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>国美在线</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/guomeishouye.css" />
		<link rel="stylesheet" type="text/css" href="css/resrt.css" />
	</head>
	<body>
		<a class="shouye" href="http://127.0.0.1:8848/Guo/guomeizaixian.html"></a>
		<div class="warp">
			<div class="top clearfix">
				<img class="top_one" src="img/国美logo.png">
				<img class="top_two" src="img/wap-suo.png">
				<a href="denglu.html">登录</a>
				<input type="text" placeholder="拉菲"/>
			</div>
			<a href="">
				<img class="warp_first" src="img/Wap-top.png">
			</a>
			<a class="sousouyemian" href="http://127.0.0.1:8848/Guo/sousuo.html"></a>
			<div class="warp_daohang">
				<div>
					<a href="daily recommendation .html">
						<img style="width: 1.5rem;" src="img/wap-1.png">
						<span>每日推荐</span>
					</a>
				</div>
				<div>
					<a href="">
						<img style="width: 1.4rem;" src="img/wap-2.png">
						<span>限时闪购</span>
					</a>
				</div>
				<div>
					<a href="">
						<img style="width: 1.8rem;" src="img/wap-3.png">
						<span style="padding-top: 0.4rem;">新品上架</span>
					</a>
				</div>
				<div>
					<a href="">
						<img style="width: 1.755rem;" src="img/wap-4.png">
						<span style="padding-top: 0.3rem;">热销推荐</span>
					</a>
				</div>
			</div>
			<div class="warp_huodong clearfix">
				<span></span>
				活动精选
				<span></span>
				<a href="">
					<div class="warp_huodong_meijiu">
						
						<p>国美酒节</p>
						<p>意大利名酒</p>
						<p>19.9元秒</p>
						<img src="img/jiuping.png" >
					</div>
				</a>
				<a href="">
					<div class="warp_huodong_maotai">
						<img src="img/wap-6.png" >
						<p class="warp_huodong_maotai_p1">茅台红色限量版</p>
						<p class="warp_huodong_maotai_p2">799元</p>
					</div>
				</a>	
			</div>
			<div class="warp_qingxin">
				<a href="">
					<div class="warp_qingxin_fist">
						<img src="img/wap-7.png" >
						<div style="border: 0.05rem solid #FFFFFF;">
							<p>LES</p>
							<p>CLANS</p>
							<p>清新 纯净</p>
						</div>
					</div>
				</a>
				<a href="">
					<div class="warp_qingxin_fist">
						<img src="img/wap-8.png" >
						<div>
							<p>LES</p>
							<p>CLANS</p>
							<p>清新 纯净</p>
						</div>
					</div>
				</a>
				<a href="">
					<div class="warp_qingxin_fist">
						<img src="img/wap-9.png" >
						<div>
							<p>LAREINA</p>
							<p>艺术家最爱</p>
						</div>
					</div>
				</a>
				<a href="">
					<div class="warp_qingxin_fist">
						<img src="img/wap-10.png" >
						<div>
							<p>FRENCH</p>
							<p>法兰西之夜</p>
						</div>
					</div>
				</a>
				<a href="">
					<div class="warp_qingxin_fist">
						<img src="img/wap-7.png" >
						<div>
							<p>LES</p>
							<p>CLANS</p>
							<p>清新 纯净</p>
						</div>
					</div>
				</a>
			</div>
			<div class="warp_weini clearfix">
				<span></span>
				为您推荐
				<span></span>
				<a href="">
				<div class="warp_weini_four">
					<img src="img/wap-11.png" >
					<p>澳洲原瓶进口红酒洛神山庄干...</p>
					<p>¥318.00</p>
				</div>
				</a>
				<a href="">
				<div class="warp_weini_four">
					<img src="img/wap-12.png" >
					<p>澳大利亚原装进口红酒整箱...</p>
					<p>¥278.00</p>
				</div>
				</a>
				<a href="">
				<div class="warp_weini_four">
					<img src="img/wap-11.png" >
					<p>澳洲原瓶进口红酒洛神山庄干...</p>
					<p>¥318.00</p>
				</div>
				</a>
				<a href="">
				<div class="warp_weini_four">
					<img src="img/wap-12.png" >
					<p>澳大利亚原装进口红酒整箱...</p>
					<p>¥278.00</p>
				</div>
				</a>
			</div>
		</div>
		<ul class="cellar_fixation">
			<li class="cellar_fixation_1"><a href="guomeizaixian.html"><img src="img/shouyebai.png" ></a></li>
			<li class="cellar_fixation_2"><a href="fenlei.html"><img src="img/分类.png" ></a></li>
			<li class="cellar_fixation_3"><a href="gouwuche.html"><img src="img/购物车.png"></a></li>
			<li class="cellar_fixation_4"><a href="wodejiujiao.html"><img src="img/wode.png" ></a></li>
		</ul>
	</body>
</html>

CSS样式

html,body {
	width: 100%;
	height: 100%;
}
html {
	font-size: 20px;
}
.warp {
	background-color: rgb(249,249,249);
	padding-bottom: 85px;
}
.top {
	width: 18.75rem;
	height: 3.175rem;
	background-color: rgb(192,27,55);
	position: relative;
	z-index: 100;
}
.top_one {
	width: 0.775rem;
	position: absolute;
	top: 0.975rem;
	left: 0.65rem;
}
.top_two {
	width: 13.5rem;
	position: absolute;
	top: 1.4rem;
	left: 2.5rem;
}
.top>a {
	color: #ffffff;
	font-size: 0.6rem;
	font-weight: normal;
	font-family: SYXihei;
	position: absolute;
	top: 1.775rem;
	left: 16.925rem;
	display: inline-block;
	width: 1.2rem;
	height: 0.55rem;
	line-height: 0.5rem;
}

.warp_first {
	width: 18.75rem;
}
.warp_daohang {
	width: 18.75rem;
	height: 4rem;
	position: relative;
}
.warp_daohang>div {
	width: 2.9rem;
	height: 2.9rem;
	background-color: #FFFFFF;
	border-radius: 1.45rem;
}
.warp_daohang>div:nth-child(1) {
	position: absolute;
	top: 0.85rem;
	left: 1.425rem;
}
.warp_daohang>div:nth-child(2) {
	position: absolute;
	top: 0.85rem;
	left: 5.775rem;
}
.warp_daohang>div:nth-child(3) {
	position: absolute;
	top: 0.85rem;
	left: 10.175rem;
}
.top>input {
        border: 0; /* // 去除未选中状态边框 */
        outline: none;/* // 去除选中状态边框 */
        background-color: rgba(0, 0, 0, 0);/* // 透明背景 */
		position: absolute;
		top: 1.775rem;
		left: 4.35rem;
		font-size: 0.75rem;
}
.warp_daohang>div:nth-child(4) {
	position: absolute;
	top: 0.85rem;
	left: 14.55rem;
}
.warp_daohang img {
	margin-top: 0.5rem;
	width: 1.7rem;
}
.warp_daohang a span {
	display: inline-block;
	font-size: 0.5rem;
	color: #333333;
	font-family: SYXihei;
	line-height: 0.6rem;
}
.warp_huodong {
	margin-top: 0.5srem;
}
.warp_huodong>span {
	display: inline-block;
	width: 6.15rem;
	border: 0.02rem solid #cccccc;
	margin: 0.25rem 0.6rem;
}
.warp_huodong {
	color: #666666;
	font-size: 0.7rem;
	margin-top: 1rem;
}
.warp_huodong_meijiu {
	width: 9.825rem;
	height: 5rem;
	background-color: #ffffff;
	margin-left:0.65rem;
	position: relative;
	margin-top: 1rem;
	padding-left: 1.125rem;
	float: left;
}
.warp_huodong_meijiu>p:nth-child(1) {
	font-size: 1rem;
	color: #000000;
	padding-top: 1.15rem;
	
	text-align: left;
}
.warp_huodong_meijiu>p:nth-child(2) {
	height: 0.95rem;
	font-size: 0.6rem;
	line-height: 0.4rem;
	color: #000000;
	text-align: left;
	font-family: PingFangSC-Light;
}
.warp_huodong_meijiu>p:nth-child(3) {
	height: 0.95rem;
	font-size: 0.764rem;
	line-height: 0.5rem;
	color: #e43643;
	text-align: left;
	font-family: PingFangSC-Light;
}
.warp_huodong_meijiu>img {
	width: 6.4rem;
	position: absolute;
	top: -1rem;
	right: 0;
}
.warp_huodong_maotai {
	width: 6.275rem;
	height: 5rem;
	background-color: #FFFFFF;
	float: right;
	margin-right: 0.65rem;
	position: relative;
	margin-top: 1rem;
}
.warp_huodong_maotai>img {
	width: 2.8rem;
	height: 3.05rem;
}
.warp_huodong_maotai_p1 {
	font-size: 0.45rem;
	font-family: PingFangSC-Light;
	color: #000000;
	margin-top: 0.25rem;
}
.warp_huodong_maotai_p2 {
	font-size: 0.5rem;
	font-family: PingFangSC-Medium;
	color: #E43643;
	margin-top: 0.225rem;
}
.warp_qingxin img {
	width: 17.5rem;
	margin-top: 0.275rem;
}
.warp_qingxin_fist {
	position: relative;
}
.warp_qingxin_fist>div {
	width: 4.45rem;
	height: 3rem;
	background-color: rgba(0,0,0,0);
	text-align: left;
	position: absolute;
	top: 0.8rem;
	left: 1.8rem;
	color: #FFFFFF;
	padding-top: 0.55rem;
	padding-left: 0.475rem;
}
.warp_weini {
	margin-top: 1rem;
	color: #666666;
	font-size: 0.7rem;
}
.warp_weini>span {
	display: inline-block;
	width: 6.15rem;
	border: 0.02rem solid #cccccc;
	margin: 0.25rem 0.6rem;
}
.warp_weini_four {
	width: 8.6rem;
	height: 8.7rem; 
	float: left;
	background-color: #FFFFFF;
	margin-left: 0.6rem;
	margin-top: 0.275rem;
}
.warp_weini_four>img {
	width: 5.45rem;
}
.last {
	width: 18.75rem;
	background-color: #f9f9f9;
	position: fixed;
	bottom: 0;
	left: 0;
	border-top: 1xp solid red;
}
.last img {
	padding: 0.35rem 1rem 0.3rem;
}
.sousouyemian {
	width: 2rem;
	height: 2rem;
	display: inline-block;
	position: absolute;
	top: 1rem;
	left: 2.3rem;
	z-index: 1000;
}
.cellar_fixation {
	width: 18.75rem;
	background-color: #FFFFFF;
	position: fixed;
	bottom: 0;
	z-index: 4;
}
.cellar_fixation>li {
	float: left;
	margin: 0.6rem 1.55rem;
}
.cellar_fixation_1 img {
	width: 1.425rem;
}
.cellar_fixation_2 img {
	width: 1.425rem;
}
.cellar_fixation_3 img {
	width: 1.85rem;
}
.cellar_fixation_4 img {
	width: 1.2rem;
}
@media screen and (min-width:411px) {
	html {
		font-size: 21.92px;
	}
}
@media screen and (min-width:414px) {
	html {
		font-size: 22.08px;
	}
} 
@media screen and (min-width:414px) {
	html {
		font-size: 22.08px;
	}
} 
@media screen and (min-width:768px) {
	html {
		font-size: 40.96px;
	}
} 
@media screen and (min-width:1024px) {
	html {
		font-size: 54.61333px;
	}
} 
@media screen and (min-width:1025px) and (max-width:3500px) {
	html {
		font-size: 105px;
	}
} 

这个首页是我项目中的一个初始页面,其中跳转都已经实现,具体项目就去这个网页能直接看到我的全部项目
静态购物网页
在做项目之前我发现了一个很有用的reset,在做移动端的时候可以用上这里我直接用代码带上去吧:

body {
font-family:arial,helvetica,sans-serif;
font-size:13px;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:1.4;
text-align:center;
}
body, ul, ol, dl, dd, h1, h2, h3, h4, h5, h6, p, form, fieldset, legend, input, textarea, select, button, th, td {
margin:0;
padding:0;
}
h1, h2, h3, h4, h5, h6 {
font-size:100%;
font-weight:normal;
}
table {
font-size:inherit;
}
input, select {
font-family:arial,helvetica,clean,sans-serif;
font-size:100%;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:normal;
}
.shouye {
	display: inline-block;
	width: 3rem;
	height: 3rem;
	position: absolute;
	top: 0;
	left: 0;
}
button {
overflow:visible;
}
th, em, strong, b, address, cite {
font-style:normal;
font-weight:normal;
}
li {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
}
img, fieldset {
border:0 none;
}
ins {
text-decoration:none;
}
*{
	margin: 0;
	padding: 0;
}
/* 将a标签去下划线,颜色改为黑色 */
a {
	text-decoration: none;
	color: rgb(0,0,0);
}
/* 将无需表格黑点去掉 */
ul {
	list-style: none;
}
/* 设置img上部对齐 */
img {
	vertical-align: top;
}
h2 {
	text-decoration: none;
	color: rgb(0,0,0);
	font-weight: normal;
	padding-bottom: 20px;
}
.clearfix:after {
	content: "";
	clear: both;
	display: block;
	height: 0;
	visibility: hidden;
}
 input {
       
        border: 0;  
        outline: none; 
        background-color: rgba(0, 0, 0, 0);
		}
		@media screen and (min-width:411px) {
			html {
				font-size: 21.92px;
			}
		}
		@media screen and (min-width:414px) {
			html {
				font-size: 22.08px;
			}
		} 
		@media screen and (min-width:414px) {
			html {
				font-size: 22.08px;
			}
		} 
		@media screen and (min-width:768px) {
			html {
				font-size: 40.96px;
			}
		} 
		@media screen and (min-width:1024px) {
			html {
				font-size: 54.61333px;
			}
		} 
		@media screen and (min-width:1025px) and (max-width:3500px) {
			html {
				font-size: 105px;
			}
		} 
		

这是我刚完成的一个项目,绝对不是最好的,我已经在路上,前往更广泛的大陆,去学习我喜欢的东西,努力!奋斗!

  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
网趣购物系统静态版支持网站一键静态生成,采用动态进度条模式生成静态,生成过程更加清晰明确,商品管理上增加淘宝数据包导入功能,与淘宝数据同步更新!采用领先的AJAX+XML相融技术,速度更快更高效!系统进行了大量的实用性更新,如优化核心法、增加商品图片批量上传、谷歌地图浏览插入等,静态版独特的生成法技术使静态生成过程可随意掌控,从而可以大大减轻服务器的负担,结合多种强大的SEO优化方式于一体,使系统在同类产品中具有速度更快、安全性更高、SEO效果更出色等特点。 全新的一键静态生成技术,可随时监测商品是否已生成过静态,系统采用多规则动态调用技术生成纯Html,采用领先的进度条与百分比显示模式直观显示生成过程,实时显示生成进度与生成比率。系统完美支持HTM文件显示动态数据,如对于新闻浏览量、不同会员级别的价格显示等内容均是在HTM文件内完成。我们以便捷的管理为出发点,系统可实时显示未生成的数据,独创不重复生成技术,即批量生成时仅生成未生成过的信息,大大减少生成时间,系统可单独生成网站和一键生成网站两种模式! 支持新订单邮件自动通知功能,自动发送订单邮件通知。新版支持淘宝数据包批量导入,可实现与淘宝店同步更新!可在线编辑生成的订单,并可对订单进行文本打印输出!可对订单进行价格、数量的再修改,也可删除订单中的某商品自动重新统计。支持优惠券功能,下订单可抵消订单相应金额;支持购物一定金额免运费功能。同时支持管理员邮件群发,为方便用户购物,报价中心可以直接把商品放入购物车,用户前台购物支持商品对比功能,新版系统新增图片在线操作,支持图片预览并支持删除操作并支持删除商品自动清除图片功能,新版编辑器还支持文件、文档的在线上传。 静态版速度快、安全性高、SEO优化效果好!结合系统强大的静态生成,配合强大的关键词设置技术可以使网站推广一步到位。网趣静态版支持多种在线支付接口,管理者可以根据需要选择使用。新版系统还支持水印图片和水印文字设置功能,以及商品靠前显示功能,完美支持三级分类设置以及论坛整合等常见功能,系统拥有多套不同色调的模板可方便切换,众多智能开关项方便控制,支持数据库在线备份、恢复及下载。支持管理员任意权限划分机制。还拥有常见的商品复制、上下架管理、高级搜索以及用户等级划分等实用功能。 支持整站关键词,细分到单个商品网站大、小、子分类、商城新闻、资讯等关键词自设功能,经过多次优化在搜索引擎优化上有了更大的飞跃,是客户网上开店最佳的解决方案。系统还支持在线QQ、MSN、旺旺等常用的在线联系,全新旺旺接口准确显示在线状态,方便与客户实时交流,网趣HTML采用KindEditor最新版作为内容编辑器,全新的编辑器效率更高,支持图片浏览与选择、图片批量上传等功能,是网上开店的首选版本。 网趣网上购物系统HTML静态版 v2016 更新日志:  修复商品展示页导航错位 修复静态生成配置文件核心法 修复商品分类页分页功能代码 修复购物车中商品增减数量功能 修复订单打印文本输出功能 修复新订单邮件通知自定度功能 修复网银在线支付接口更新包 修复新闻系统代码过程调用

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值