<html lamg="en">(画三角形)
<head>
<meta charset="utf-8">
<title>画三角形</title>
<link rel="stylesheet" href="./style.css">
.dialog{
background-color: #6A6;
margin:50px auto;
width:300px;
height:25px;
line-height:25px;
padding:10px;
border-radius:6px;
color: #fff;
}
.dialogbefore{
content:' ' ;
border-left:0px solid #6A6;
border-top:10px solid transparent;
border-bottom:10px solid transparent;
border-right:10px solid transparent;
position: absolute;
left:-10px;
top:10px;
}
</head>
<body>
<div class="三角形"></div>
</body>
</html>