我的文本旁邊的三角形垂直對齊頂部,而不是與文本位於同一水平。使用css邊框繪製的三角形出現在文本頂部
它看起來像,
Plunker代碼here。
我對三角CSS是,
.arrow-down {
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid #000;
}
注:此外,我試圖顯示使用Unicode \25BC
一個三角形,但它並沒有出現。
<span class="triangle"></span>
.triangle{
display: inline-block;
width: 20px;
height: 20px;
content : '\25BC';
}
非常感謝,Justinas ... –