尤其是尖角樣式,該如何處理?或者有其他屬性可以直接彈出提示?
2 回答

滄海一幻覺
TA貢獻1824條經(jīng)驗 獲得超5個贊
當然是偽元素+邊框處理了
<div></div>
div { position: relative; width: 100px; height: 50px; background: #ccc; margin-top: 10px; }div:after { content: ''; position: absolute; top: -20px;left:10px; border: 10px solid transparent; border-bottom-color: red; }
添加回答
舉報
0/150
提交
取消