箭頭一般會用特殊符號或者iconfont實現(xiàn),之前學(xué)到一個用塊標簽來寫的,不知實不實用,寫記錄下來
html代碼如下:
<div class="arrow"></div>
css代碼:
.arrow{
? ?width: 20px;
? ?height: 20px;
? ?border-left: 2px solid #ccc;
? ?border-bottom: 2px solid #ccc;
? ?transform: rotate(-45deg);
}
效果:

箭頭一般會用特殊符號或者iconfont實現(xiàn),之前學(xué)到一個用塊標簽來寫的,不知實不實用,寫記錄下來
html代碼如下:
<div class="arrow"></div>
css代碼:
.arrow{
? ?width: 20px;
? ?height: 20px;
? ?border-left: 2px solid #ccc;
? ?border-bottom: 2px solid #ccc;
? ?transform: rotate(-45deg);
}
效果: