我需要li在菜单中我当前的一侧添加一个三角形。我进行了设置,以便可以使用 jquery 编辑它的 css,并想知道是否可以通过编辑边框li而不是添加新的 div 来实现这种效果。
jsfiddle:我想通过添加边框来查看第二个 divdiv-1
<div class="div-1"></div>
<br>
<div class="div-1"><div><div class="triangle"></div>
.div-1 {
    width:174px;
    height:32px;
    line-height:32px;
    margin-bottom:6px;
    display:block;
    background-color:#149dae;
}
.triangle {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 16px 0 16px 16px;
    border-color: transparent transparent transparent #149dae;
    position:absolute;
    margin-left:174px;
}