純CSS繪制的三角形箭頭圖案
來源:懂視網
責編:小采
時間:2020-11-27 20:30:56
純CSS繪制的三角形箭頭圖案
純CSS繪制的三角形箭頭圖案:div#up { width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid#2f2f2f; } div#down { width: 0px; height: 0px; border-left: 20px solid transparent; border-right: 20px solidt
導讀純CSS繪制的三角形箭頭圖案:div#up { width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid#2f2f2f; } div#down { width: 0px; height: 0px; border-left: 20px solid transparent; border-right: 20px solidt

div#up {
width: 0px;
height: 0px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid#2f2f2f;
}
div#down {
width: 0px;
height: 0px;
border-left: 20px solid transparent;
border-right: 20px solidtransparent;
border-top: 20px solid #f00;
}
div#left {
width: 0px;
height: 0px;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-right: 10px solidyellow;
}
div#right {
width: 0px;
height: 0px;
border-top: 60px solid transparent;
border-bottom: 60px solid transparent;
border-left: 60px solid green;
}
html:
<div id="up"></div>
<div id="down"></div>
<div id="left"></div>
<div id="right"></div>
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
純CSS繪制的三角形箭頭圖案
純CSS繪制的三角形箭頭圖案:div#up { width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid#2f2f2f; } div#down { width: 0px; height: 0px; border-left: 20px solid transparent; border-right: 20px solidt