-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathttt.html
More file actions
99 lines (97 loc) · 2.09 KB
/
ttt.html
File metadata and controls
99 lines (97 loc) · 2.09 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
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<title>Title</title>
<style>
aside{
background: #000;
height:300px;
}
article{
background: #ffdd00;
height:200px;
}
.clearfix:before,
.clearfix:after {
display: table;
content: ' ';
}
.clearfix:after{
clear: both;
}
.content1>aside{
width:170px;
float: left;
}
.content1>article{
margin-left: 170px;
zoom: 1;
}
.content1 .test{
width:100%;
height:50px;
background: #fff;
}
.content2>aside{
display: inline-block;
width:170px;
}
.content2>article{
display: inline-block;
}
.content3{
position: relative;
zoom: 1;
}
.content3>aside{
position: absolute;
left:0;
top:0;
width:170px;
}
.content3>article{
margin-left: 170px;
zoom: 1;
}
.content4>aside{
float: left;
width:170px;
}
.content4>article{
float: left;
height:auto;
}
</style>
</head>
<body>
<div class="content1 clearfix">
<aside></aside>
<article>
<div class="test">222</div>
</article>
</div>
<!--<div class="content2 clearfix">
<aside></aside>
<article>
</article>
</div>
<div class="content3 clearfix">
<aside></aside>
<article>
</article>
</div>-->
<div style="zoom: 5;height: 20px;background-color: #00a0e9;"></div>
<div class="content4 clearfix">
<aside></aside>
<article>
dfsflalsjlkdfsflalsjlkdfs<br>
flalsjlkdfsflalsjlkdfsflal<br>
sjlkdfsflalsjlkdfsflalsjlkdfsflalsjlk
</article>
</div>
</body>
</html>