我可以弄清楚如何做到这一点。这个主题帮助我:将箭头添加到 twitter bootstrap 的下拉药丸?
通过添加
.dropdown-menu::after {
position: absolute;
top: -6px;
left: 10px;
display: inline-block;
border-right: 8px solid transparent;
border-bottom: 8px solid white;
border-left: 8px solid transparent;
content: '';
}
我能够得到箭头显示。但是,箭头顶部周围没有边框,所以它现在看起来就像下拉菜单中的一个间隙。有谁知道如何将边框添加到向上箭头?