/
002-tips.html
76 lines (69 loc) · 1.48 KB
/
002-tips.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
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.ct{
width:200px;
height:100px;
border:1px solid #ccc;
margin:20px 20px;
}
.tips1{
height:0px;
width:0px;
border-bottom:10px #ccc solid;
border-left:10px transparent solid;
border-top:10px transparent solid;
border-right:10px transparent solid;
position:relative;
margin-top:-20px;
margin-left:10px;
}
.tips2{
width:0px;
height:0px;
border-top:10px red solid;
border-right:10px red solid;
border-bottom:10px transparent solid;
border-left:10px transparent solid;
position:relative;
margin-left:180px;
}
.tips3{
height:0px;
width:0px;
border-bottom:10px #ccc solid;
border-left:10px transparent solid;
border-right:10px transparent solid;
position:relative;
margin-top:-10px;
margin-left:10px;
}
.tips3::after{
content:"";
display:block;
border-bottom:10px white solid;
border-left:10px transparent solid;
border-top:10px transparent solid;
border-right:10px transparent solid;
position:absolute;
margin-top:-8px;
margin-left:-10px;
}
</style>
</head>
<body>
<div class="ct">
<div class="tips1"></div>
</div>
<div class="ct">
<div class="tips2"></div>
</div>
<div class="ct">
<div class="tips3">
</div>
</div>
</body>
</html>