Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions 2017-3-9/teamA/city.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" type="text/css" href="css/city.css">
<script>
;(function(){
let html=document.documentElement;
html.style.fontSize=html.clientWidth*20/375+'px';
window.onresize=function(){
html.style.fontSize=html.clientWidth*20/375+'px';
};
})()
</script>
</head>
<body>
<!--city-box start-->
<div class="city-box">
<!--header start-->
<header>
<a href="javascript:;" class="return">return</a>
<h4>城市列表</h4>
</header>
<!--header end-->
<section>
<!--cur-pos start-->
<ul class="cur-pos">
<li>
<a href="javascript:;">当前位置</a>
</li>
<li>
<a href="javascript:;" class="sitecolor">深圳</a>
</li>
</ul>
<!--cur-pos end-->
<!--sowntown start-->
<div class="sowntown">
<div class="select">
<h4>请选择商业区</h4>
</div>
<ul class=" retail-centre">
<li><a href="javascript:;">东门老街</a></li>
<li><a href="javascript:;">罗湖商业城</a></li>
<li><a href="javascript:;">华强北</a></li>
<li><a href="javascript:;">福田中心</a></li>

<li><a href="javascript:;">八封岭</a></li>
<li><a href="javascript:;">沙头角</a></li>
<li><a href="javascript:;">湾口岸</a></li>
<li><a href="javascript:;">南山-南油</a></li>
</ul>
</div>
<!--sowntown end-->
<!--locationlist-box start-->
<div class="locationlist-box">
<div class="location-title">
<a href="javascript:;">省列城市</a>
</div>
<ul class="location-list">
<li>
<a href="javascript:;">深圳</a>
</li>
<li>
<a href="javascript:;">北京</a>
</li>
<li>
<a href="javascript:;">上海</a>
</li>
<li>
<a href="javascript:;">广州</a>
</li>
<li>
<a href="javascript:;">苏州</a>
</li>
</ul>
</div>
<!--locationlist-box end-->
</section>
</div>
<!--city-box end-->
</body>
</html>
21 changes: 21 additions & 0 deletions 2017-3-9/teamA/css/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**清除默认边框**/
*{margin:0; padding:0;}
h1,h2,h3,h4,h5,h6{font-weight:normal; font-size:16px;}
a{color:#000; text-decoration:none;}
b,strong{font-weight:normal; }
i,em{font-style:normal;}
li{list-style:none;}
p{line-height:100%;}
/**清浮动**/
.clearfix:after(display:block; content:''; clear:both;)
.clearfix{zoom:1}
/**浮动**/
.fl{ float:left;}
.fr{ float:right;}
/**垂直头部**/
img{ vertical-align:top;}
input{ background:none; border:none; outline:none; border:1px solid #ccc; padding:0;}
/*文本域*/
textarea{ resize:none;}
/**/
table{ border-collapse:collapse;}
155 changes: 155 additions & 0 deletions 2017-3-9/teamA/css/city.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
* {
margin: 0;
padding: 0;
list-style: none;
}

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

/*city-box css*/

.city-box {
width: 18.75rem;
background: #eee;
/*header css*/
/*当前位置cur-pos css*/
/*商业区sowntown css*/
/*地址列表locationlist-box css*/
}

.city-box header {
width: 100%;
height: 2.225rem;
background: #fdfffc;
display: flex;
align-items: center;
padding-left: 0.5rem;
border-bottom: 0.025rem solid #bec0bd;
box-sizing: border-box;
}

.city-box header .return {
width: 0.475rem;
height: 0.8rem;
background: url(../img/return.png) no-repeat;
background-size: 0.475rem 0.8rem;
text-indent: -9999rem;
}

.city-box header h4 {
font-size: 0.925rem;
color: #5ca32b;
font-weight: normal;
margin-left: 6.45rem;
box-sizing: border-box;
}

.city-box .cur-pos {
height: 4.05rem;
background: #fdfffc;
border-bottom: 0.025rem solid #c7c7c5;
margin-top: 0.45rem;
box-sizing: border-box;
}

.city-box .cur-pos li {
height: 2.025rem;
line-height: 2.025rem;
border-bottom: 0.025rem solid #e4e6e3;
box-sizing: border-box;
padding-left: 0.5rem;
}

.city-box .cur-pos li a {
font-size: 0.575rem;
color: #696967;
}

.city-box .cur-pos li .sitecolor {
color: #31312f;
}

.city-box .sowntown {
height: 7.35rem;
background: #fdfffc;
margin-top: 0.45rem;
border-bottom: 0.025rem solid #c6c6c6;
box-sizing: border-box;
}

.city-box .sowntown .select {
height: 2rem;
line-height: 2rem;
padding-left: 0.5rem;
border-bottom: 0.025rem solid #e4e6e3;
box-sizing: border-box;
}

.city-box .sowntown .select h4 {
font-size: 0.55rem;
color: #626262;
font-weight: normal;
}

.city-box .sowntown .retail-centre {
height: 5.325rem;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding: 0.5rem 0.5rem;
box-sizing: border-box;
}

.city-box .sowntown .retail-centre li {
width: 3.975rem;
height: 1.375rem;
text-align: center;
background: #dcdcdc;
border-radius: 0.2rem;
}

.city-box .sowntown .retail-centre li a {
display: block;
height: 1.375rem;
line-height: 1.375rem;
font-size: 0.55rem;
}

.city-box .locationlist-box {
height: 17.35rem;
background: #fdfffc;
}

.city-box .locationlist-box .location-title {
height: 2.025rem;
padding-left: 0.5rem;
border-bottom: 0.025rem solid #e4e6e3;
box-sizing: border-box;
}

.city-box .locationlist-box .location-title a {
display: block;
line-height: 2.025rem;
font-size: 0.55rem;
color: #636363;
}

.city-box .locationlist-box .location-list {
height: 2.025rem;
}

.city-box .locationlist-box .location-list li {
height: 2.025rem;
line-height: 2.025rem;
border-bottom: 0.025rem solid #e4e6e3;
box-sizing: border-box;
}

.city-box .locationlist-box .location-list li a {
font-size: 0.55rem;
display: block;
padding-left: 0.5rem;
}
Loading