-
Notifications
You must be signed in to change notification settings - Fork 1
/
CSS气泡1.html
42 lines (42 loc) · 886 Bytes
/
CSS气泡1.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
<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;
background: #beceed;
position: relative;
}
.test span{
width: 0;
height: 0;
font-size: 0;
overflow: hidden;
position: absolute;
}
.test span.bot{
border-width: 20px;
border-style: solid;
border-color: #ffffff #beceeb #beceeb #ffffff;
left: -40px;
top: 40px;
}
.test span.top{
border-width: 10px 20px;
border-style: dashed solid solid dashed;
border-color: transparent #ffffff #ffffff transparent;
left: -40px;
top: 60px;
}
</style>
</head>
<body>
<div class='test'>
<span class='bot'></span>
<span class='top'></span>
CSS “边框法”实现气泡对话框效果 你好
</div>
</body>
</html>