穿搭速递网页制作

2021/12/14 6:21:05

本文主要是介绍穿搭速递网页制作,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 

 

html部分 

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<link rel="stylesheet" href="css/index.css" type="text/css">
	
</head>
<body>
	<div id="bodyBox">
		<div id="headBox">
			<img src="images/logo.png" alt="">
			<ul id="nav">
				<li class="navItem"><a href="#">穿搭速递</a></li>
				<li class="navItem"><a href="#">时尚大片</a></li>
				<li class="navItem"><a href="#">星着装</a></li>
				<li class="navItem"><a href="#">时尚圈</a></li>
				<li class="navItem"><a href="#">时尚专栏</a></li>
				<li class="navItem"><a href="#">会员/登录</a></li>
			</ul>
		</div>
		<div id="midBox">
			<div class="bannerBox">
				<img src="images/banner.jpg" alt="">
			</div>
			<div class="bannerBox picBox">
				<div id="picBigBox">
					<div class="picMedBox">
						<div class="picSmallBox" style="height: 169px">
							<img src="images/pic01.jpg" alt="">
							<a href="#" class="picText ">明星风尚</a>
						</div>
						<div class="picSmallBox" style="height: 137px">
							<img src="images/pic02.jpg" alt="">
							<a href="#" class="picText">时尚博主</a>
						</div>
					</div>
					<div class="picMedBox">
						<div class="picSmallBox" style="height: 117px">
							<img src="images/pic03.jpg" alt="">
							<a href="#" class="picText">流行搭配</a>
						</div>
						<div class="picSmallBox" style="height: 188px">
							<img src="images/pic04.jpg" alt="">
							<a href="#" class="picText">精选秀场</a>
						</div>
					</div>
					<div class="picMedBox">
						<img src="images/pic05.jpg" alt="" style="margin-top: 5px;height: 309px;">
						<a href="#" class="picText" id="btext">环球街拍</a>
					</div>
				</div>
			</div>
			<h3>潮流前沿/Tidal current</h3>
			<div id="tcBox">
				<div class="matchBox">
					<img src="images/match01.jpg" alt="">
					<h4>潮流饰品</h4>
					<a href="#">快速购买通道</a>
				</div>
				<div class="matchBox">
					<img src="images/match02.jpg" alt="">
					<h4>时尚女鞋</h4>
					<a href="#">快速购买通道</a>
				</div>
				<div class="matchBox">
					<img src="images/match03.jpg" alt="">
					<h4>精品包包</h4>
					<a href="#">快速购买通道</a>
				</div>
				<div class="matchBox">
					<img src="images/match04.jpg" alt="">
					<h4>百搭衣帽</h4>
					<a href="#">快速购买通道</a>
				</div>
			</div>
		</div>
		<div id="bottonBox">
			<span>
				<a href="#">Copyight ○ 2006-2016 CHAOLIUFUSHIcom,All rights reserved</a>
				<a href="#" style="margin-top: 8px;">2001-2018,版权所有,潮流服饰 85CP备13385453</a>
			</span>
		</div>
	</div>
</body>
</html>

css部分

*{
	margin: 0;
	padding: 0;
}
#bodyBox{
	width: 100%;
	height: 1455px;
	overflow: hidden;
	background-color: #fff9ed;
}
#headBox{
	height: 128px;
	background-image: url("../images/head_bg.jpg");
	background-repeat: repeat-x;
	overflow: hidden;

}
#headBox>img{
	position: absolute;
	z-index: 100;
	margin-left: 150px;
}
#nav{
    margin-left: 400px;
	position: relative;
	overflow: hidden;
}
.navItem{
	height: 100px;
	width: 120px;
	line-height: 64px;
	float: left;
	list-style: none;
	text-align: center;

}
.navItem>a{
	color: #fff;
	text-decoration: none;
}
.navItem:hover{
	background-image: url("../images/xuanfu.png");
	background-repeat: no-repeat;	
}
#midBox{
	width: 980px;
	height: 1200px;
	margin: 0 auto;
	overflow: hidden;
}
.bannerBox{
	height: 373px;
	overflow: hidden;
}
.picBox{
	height: 340px;
	background-color: #F3734E;
	overflow: hidden;
}
#picBigBox{
	width: 920px;
	height: 320px;
	background-color: #fff;
	margin: 5px 26px;
}
.picMedBox{
	float: left;
	width: 294px;
	height: 320px;
	margin: 0 6px;
	overflow: hidden;
}
.picSmallBox{
	margin-top: 5px;
	overflow: hidden;
}
.picText{
	background-color: #242424;
	color: #fff;
	height: 100%;    
	width: 44.7%;
	line-height: 169px;
	text-align: center;
	text-decoration: none;
	float: right;
}
#btext{
	width: 31.3%;
	margin-top: 5px;
	height: 309px;
	line-height: 309px;
}
h3{
	background-color: #ea6c46;
	color: #fff;
	margin-top: 50px;
	height: 40px;
	width: 220px;
	line-height: 40px;
	text-align: center;
}
#tcBox{
	height: 340px;
	border: 1px solid #dcd2ba;
	overflow: hidden;
	background-color: #fff;
}
.matchBox{
    border: 1px solid #dcd2ba;
    height: 326px;
    width: 229px;
    margin: 5px 0;
    float: left;
    margin-left: 11px;
    display: flex;
   	flex-direction: column;
}
.matchBox>h4{
	text-align: center;
	margin: 15px 0;
}
.matchBox>a{
	display: inline-block;
	background-color: #ea6c46;
	height: 38px;
	width: 200px;
	text-decoration: none;
	color: #fff;
	line-height: 38px;
	font-size: 14px;
	background-image: url("../images/gouwu.jpg");
	background-repeat: no-repeat;
	text-align: center;
	margin: 0 auto;
}
#bottonBox{
	background-color: #202020;
	height: 128px;
	overflow: hidden;
}
#bottonBox>span{
	display: block;
	height: 46px;
	width: 480px;
	margin: 41px auto;
	overflow: hidden;
}
#bottonBox>span a{
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	display: block;
	text-align: center;
}



这篇关于穿搭速递网页制作的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程