1
我found下面的CSS代碼來創建矩形加右手邊三角形矩形右手邊三角形輪廓僅
div{
position: relative;/*it important to set this to relative to be able to use :before in absolute*/
width: 60px;
height: 40px;
background: red
}
div:before{
content: '';
position:absolute;
left: 100%;
top: 0;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-left: 20px solid red
}
<div>Play</div>
我應該怎麼做同樣的事情,但只有大綱?
謝謝你的提示,我會做 –