0
我可以弄清楚如何做到这一点。本主题帮助我:adding the arrow to dropdown pills for 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: '';
}
我能得到的箭头显示。但是,箭头顶部没有边框,所以现在看起来就像下拉菜单中的一个空白。有谁知道如何将边框添加到向上箭头?
不起作用。只需在箭头顶部放一条水平线 – Anthony
@Anthony您能否分享您的标记和相关的CSS?没有它,我们只能猜测可能是错的。 – Becuzz