-
Notifications
You must be signed in to change notification settings - Fork 1
/
CSS气泡2.html
51 lines (51 loc) · 1.08 KB
/
CSS气泡2.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
<html>
<meta http-equiv='content-Type' content="text/html; charset=UTF-8">
<head>
<style type="text/css">
.test{
width: 300px;
padding: 30px 20px;
margin-left: 60px;
border: 5px solid #beceeb;
position: relative;
}
.test span{
width: 0;
height: 0;
font-size: 0;
overflow: hidden;
position: absolute;
}
.test span.bot{
border-width: 20px;
border-style: solid dashed dashed;
border-color: #beceeb transparent transparent;
left: 80px;
bottom: -40px;
}
.test span.top{
border-width: 20px;
border-style: solid dashed dashed;
border-color: #ffffff transparent transparent;
left: 80px;
bottom: -33px;
}
.test span.a{
border-width: 20px;
border-style: solid;
border-color: red;
left: 10px;
bottom: -40px;
}
</style>
</head>
<body>
<div class='test'>
<span class='bot'></span>
<span class='top'></span>
<span class='a'></span>
CSS “边框法”实现气泡对话框效果 你好<br/>
CSS “边框法”实现气泡对话框效果 你好
</div>
</body>
</html>