<!DOCTYPE html>
<html>
<head>
<style>
#box {
width: 200px;
height: 200px;
margin-top: 50px;
margin-left: 50px;
background-color: #f4eeee;
}
.sanjiao{
float: right;
/*margin-top: -10px;*/
width:0;
height:0;
overflow:hidden;
font-size: 0; /*是因为, 虽然宽高度为0, 但在IE6下会具有默认的 */
line-height: 0; /* 字体大小和行高, 导致盒子呈现被撑开的长矩形 */
border-width:15px 0px 15px 15px;
border-style:solid;/*IE6下, 设置余下三条边的border-style为dashed,即可达到透明的效果*/
border-color:#b4de8f transparent transparent transparent;
}
</style>
</head>
<body>
<div id="box">
<div class="sanjiao"></div>
</div>
</body>
</html>
效果图如下: