-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout05.html
More file actions
86 lines (78 loc) · 3.48 KB
/
layout05.html
File metadata and controls
86 lines (78 loc) · 3.48 KB
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
<!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 05</title>
<style>
* {margin: 0; padding: 0;}
body {background-color: #e3f2fd;}
#wrap {width: 1200px; margin: 0 auto;}
#header {width: 100%; height: 100px; background-color: #b3defe;}
#banner {width: 100%; height: 400px; background-color: #7ecbfd;}
#content1 {overflow: hidden;}
#content1 .nav {float: left; width: 30%; height: 500px; background-color: #43b5fc;}
#content1 .article_right1 {float: left; width: 70%; height: 250px; background-color: #00a5fb;}
#content1 .article_right2 {float: left; width: 70%; height: 250px; background-color: #0096fa;}
#content2 {overflow: hidden;}
#content2 .article_box1 {float: left; width: 33.3333%; height: 300px; background-color: #0088ec;}
#content2 .article_box2 {float: left; width: 33.3333%; height: 300px; background-color: #0076d9;}
#content2 .article_box3 {float: left; width: 33.3333%; height: 300px; background-color: #0064c6;}
#content3 {overflow: hidden; padding: 5%; background-color: #00a6fc;}
#content3 .article_square1 {float: left; width: 23%; height: 200px; margin: 1%; border-radius: 5px; background-color: #0076d9;}
#content3 .article_square2 {float: left; width: 23%; height: 200px; margin: 1%; border-radius: 5px; background-color: #0076d9;}
#content3 .article_square3 {float: left; width: 23%; height: 200px; margin: 1%; border-radius: 5px; background-color: #0076d9;}
#content3 .article_square4 {float: left; width: 23%; height: 200px; margin: 1%; border-radius: 5px; background-color: #0076d9;}
#footer {width: 100%; height: 100px; background-color: #43b5fc;}
/* Media Query 0 - 1200 px */
@media (max-width: 1220px){
#wrap {width: 100%;}
#content2 .article_box1 {width: 50%;}
#content2 .article_box1 {width: 50%;}
#content2 .article_box1 {display: none;}
#content3 .article_square1 {width: 33.3333%;}
#content3 .article_square2 {width: 33.3333%;}
#content3 .article_square3 {width: 33.3333%;}
#content3 .article_square4 {display: none;}
}
/* Media Query 0 - 768px */
@media (max-width: 768px){
#content2 .article_box1 {width: 100%;}
#content2 .article_box1 {width: 100%;}
}
/* Media Query 0 - 480px */
@media (max-width: 480px) {
#content1 .nav {width: 100%; height: 200px;}
#content1 .article_right1 {width: 100%; height: 200px;}
#content1 .article_right2 {width: 100%; height: 200px;}
#content3 .article_square1 {width: 98%; border-radius: 5px;}
#content3 .article_square2 {width: 98%; border-radius: 5px;}
#content3 .article_square3 {width: 98%; border-radius: 5px;}
}
</style>
</head>
<body>
<div id="wrap">
<header id="header"></header>
<section id="banner"></section>
<section id="content1">
<nav class="nav"></nav>
<article class="article_right1"></article>
<article class="article_right2"></article>
</section>
<section id="content2">
<article class="article_box1"></article>
<article class="article_box2"></article>
<article class="article_box3"></article>
</section>
<section id="content3">
<article class="article_square1"></article>
<article class="article_square2"></article>
<article class="article_square3"></article>
<article class="article_square4"></article>
</section>
<footer id="footer"></footer>
</div>
</body>
</html>