<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>平时不用气泡都忘了</title>
<style>
#boxshadow {
position: relative;
width: 300px;
}
/* Make the image fit the box */
#boxshadow div {
width:100px;
height:30px;
margin-left:10px;
background:rgba(245,245,245,1);
border: 1px solid #000000;
border-radius:5px;
}
#boxshadow::before,#boxshadow::after {
content: '';
position: absolute;
top:6px;
width:0px;
height:0px;
border:10px solid transparent;
}
#boxshadow::before{
left:-9px;
border-right-color:rgba(245,245,245,1);
z-index:1
}
#boxshadow::after{
left: -10px;
border-right-color: rgba(0, 0, 0, 1);
z-index:0
}
</style>
</head>
<body>
<div id="boxshadow">
<div></div>
</div>
</body>
</html>