-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout01.html
44 lines (41 loc) · 1.12 KB
/
layout01.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
<!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>Layout 01</title>
<style>
* {padding: 0; margin: 0;}
body {background: #f3e5f5;}
#wrap {width: 1200px; margin: 0 auto;}
header {width: 100%; height: 150px; background: #9575cd;}
aside {float: left; width: 30%; height: 700px; background: #7e57c2;}
section {float: left; width: 70%; height: 700px; background: #673ab7;}
footer {clear: both; width: 100%; height: 150px; background: #5e35b1;}
/* screen width 0 - 1200px */
@media (max-width: 1220px){
#warp {width: 95%;}
}
/* screen width 0 - 768px */
@media (max-width: 768px){
#warp {width: 100%;}
}
/* screen width 0 - 480px */
@media (max-width: 480px){
#warp {width: 100%;}
header {height: 300px;}
aside {float:none; width: 100%; height: 300px;}
section {float:none; width: 100%; height: 300px;}
}
</style>
</head>
<body>
<div id="wrap">
<header></header>
<aside></aside>
<section></section>
<footer></footer>
</div>
</body>
</html>