-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
71 lines (71 loc) · 1.27 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>new function</title>
<style type="text/css">
#main {
margin: 10px;
}
#header{
position: relative;
width: 100%;
height: 80px;
margin: 0 auto;
border: 1px solid green;
}
#logo{
position: absolute;
width: 60px;
height: 60px;
top: 10px;
left: 10px;
border: 1px solid red;
}
#user{
position: absolute;
width: 100px;
height: 20px;
bottom: 5px;
right: 10px;
border: 1px solid #666;
}
#mainBlock {
position: relative;
width: 100%;
height: 510px;
margin: 10px auto;
}
#content{
height: 100%;
margin-right: 220px;
border:1px solid blue;
}
#aside{
position: absolute;
height: 50%;
top: 0;
right: 0;
width: 200px;
border:1px solid red;
}
#footer{
width: 100%;
height: 50px;
margin: 0 auto;
border: 1px solid #666;
}
</style>
</head>
<body>
<div id="main">
<div id="header">
<div id="logo"></div>
<div id="user"></div>
</div>
<div id="mainBlock">
<div id="content"></div>
<div id="aside"></div>
</div>
<div id="footer"></div>
</div>