File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+
4
+ < head >
5
+ < meta charset ="utf-8 ">
6
+ < title > Layout</ title >
7
+ < style media ="screen ">
8
+ html * {
9
+ padding : 0 ;
10
+ margin : 0 ;
11
+ }
12
+
13
+ </ style >
14
+ </ head >
15
+
16
+ < body >
17
+ < style >
18
+ .container {
19
+ padding-left : 220px ;
20
+ padding-right : 220px ;
21
+ }
22
+
23
+ .left {
24
+ float : left;
25
+ width : 200px ;
26
+ height : 400px ;
27
+ background : red;
28
+ margin-left : -100% ;
29
+ position : relative;
30
+ left : -220px ;
31
+ }
32
+
33
+ .center {
34
+ float : left;
35
+ width : 100% ;
36
+ height : 500px ;
37
+ background : yellow;
38
+ }
39
+
40
+ .right {
41
+ float : left;
42
+ width : 200px ;
43
+ height : 400px ;
44
+ background : blue;
45
+ margin-left : -200px ;
46
+ position : relative;
47
+ right : -220px ;
48
+ }
49
+
50
+ </ style >
51
+ < article class ="container ">
52
+ < div class ="center ">
53
+ < h2 > 圣杯布局</ h2 >
54
+ </ div >
55
+ < div class ="left "> </ div >
56
+ < div class ="right "> </ div >
57
+ </ article >
58
+ </ body >
59
+
60
+ </ html >
You can’t perform that action at this time.
0 commit comments