-
Notifications
You must be signed in to change notification settings - Fork 0
/
html5Xiecheng.html
196 lines (189 loc) · 5.38 KB
/
html5Xiecheng.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>携程</title>
<style>
* {
margin: 0;
padding: 0;
}
header {
width: 100%;
display: flex;
}
header > a {
flex: 1;
}
header > a > img {
width: 100%;
}
main {
width: 100%;
padding: 0 10px;
box-sizing: border-box;
}
main > section.item {
margin-top: 15px;
width: 100%;
height: 100px;
background-color: darkgreen;
border-radius: 10px;
display: flex;
}
main > section.item:nth-child(2) {
background-color: aqua;
}
main > section.item:nth-of-type(3) {
background-color: bisque;
}
main > section.item:nth-of-type(4) {
background-color: cornflowerblue;
}
main > section.item > .left {
flex: 1;
}
main > section.item > .right {
flex: 2;
display: flex;
flex-wrap: wrap;
}
main > section.item > .right > a {
width: 50%;
height: 50%;
text-align: center;
box-sizing: border-box;
border-left: 1px solid white;
border-bottom: 1px solid white;
line-height: 50px;
color: white;
display: block;
text-decoration: none;
}
main > section.item > .right > a:nth-last-of-type(-n + 2) {
border-bottom: none;
}
main > section.extra {
width: 100%;
display: flex;
}
main > section.extra > a {
flex: 1;
}
main > section.extra > a > img {
width: 100%;
}
footer {
width: 100%;
font-size: 14px;
}
footer > nav {
width: 100%;
display: flex;
border-top: 1px solid darkgray;
border-bottom: 1px solid darkgray;
}
footer > nav > a {
flex: 1;
text-align: center;
text-decoration: none;
color: gray;
line-height: 30px;
}
footer > p.link {
text-align: center;
display: flex;
justify-content: center;
}
footer > p.link > a {
color: blue;
margin: 5px 0 5px 0;
padding: 0 5px 0 5px;
}
footer > p.link > a:first-child {
border-right: 1px solid darkgray;
}
footer > p.link > a:nth-child(2) {
border-left: 1px solid darkgray;
border-right: 1px solid darkgray;
}
footer > p.link > a:last-child {
border-left: 1px solid darkgray;
}
footer > p.copyRight {
text-align: center;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<header>
<a href="">
<img src="images/banner.png" alt="">
</a>
</header>
<main>
<section class="item">
<div class="left"></div>
<div class="right">
<a href="">海外酒店</a>
<a href="">团购</a>
<a href="">特价酒店</a>
<a href="">客栈公寓</a>
</div>
</section>
<section class="item">
<div class="left"></div>
<div class="right">
<a href="">海外酒店</a>
<a href="">团购</a>
<a href="">特价酒店</a>
<a href="">客栈公寓</a>
</div>
</section>
<section class="item">
<div class="left"></div>
<div class="right">
<a href="">海外酒店</a>
<a href="">团购</a>
<a href="">特价酒店</a>
<a href="">客栈公寓</a>
</div>
</section>
<section class="item">
<div class="left"></div>
<div class="right">
<a href="">海外酒店</a>
<a href="">团购</a>
<a href="">特价酒店</a>
<a href="">客栈公寓</a>
</div>
</section>
<section class="extra">
<a href="">
<img src="images/extra1.png" alt="">
</a>
<a href="">
<img src="images/extra2.png" alt="">
</a>
</section>
</main>
<footer>
<nav>
<a href="">电话预定</a>
<a href="">下载客户端</a>
<a href="">我的</a>
</nav>
<p class="link">
<a href="">网站地图</a>
<a href="">ENGLISH</a>
<a href="">电脑版</a>
</p>
<p class="copyRight">©2015 携程旅行</p>
</footer>
</div>
</body>
</html>