-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
51 lines (47 loc) · 808 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>lesson-4</title>
<style>
body {
position: relative;
min-height: 500px;
border: 1px solid #ccc;
}
.inner {
position: absolute;
width: 400px;
height: 200px;
background: #ccc;
left: 0;
top: 0;
bottom: 0;
right: 0;
margin: auto;
overflow: hidden;
}
.inner>div {
position: absolute;
width: 100px;
height: 100px;
border-radius: 50%;
background: #fc0;
}
.inner .c1 {
top: -50px;
left: -50px;
}
.inner .c2 {
bottom: -50px;
right: -50px;
}
</style>
</head>
<body>
<div class="inner">
<div class="c1"></div>
<div class="c2"></div>
</div>
</body>
</html>