<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>:after:before气泡对话框</title>
<style>
div
{
width:300px;
height:100px;
border:1px solid red;
position:relative;
}
div:before,div:after{
content:"";
position:absolute;
width:0;
height:0;
top:40px;
border:6px solid transparent;
}
div:before{
left:-11px;
border-right-color:#fff;
z-index:1
}
div:after{
left: -12px;
border-right-color:red;
z-index: 0
}
</style>
</head>
<body>
<div></div>
</body>
</html>