原理类似。
百度的三角形样式:
.s-user-set-menu .menu-arrow em {
position: absolute;
top: -4px;
left: -5px;
display: block;
width: 0;
height: 0;
line-height: 0;
font-size: 0;
color: #666;
border-top: 5px dashed rgba(0, 0, 0, 0);
border-left: 5px dashed rgba(0, 0, 0, 0);
border-right: 5px dashed rgba(0, 0, 0, 0);
border-bottom: 5px solid #FFF;
}
CSS三角形產生器