注射:

如果 CSS 中有一些屬性可以在布局中創建這樣的角度
程式本身沒有在我嘗試在那里搜索的選項卡中指定此屬性!:

uj5u.com熱心網友回復:
您可以簡單地使用 clip-path css 屬性,這是一個示例:
.square{
clip-path: polygon(80% 0%, 100% 20%, 100% 80%, 0% 80%, 0 0);
background-color:dodgerblue;
width:200px;
height:200px;
}
<div class="square"></div>
剪輯路徑:多邊形(80% 0%、100% 20%、100% 80%、0% 80%、0 0);
有關此屬性的更多資訊MDN 剪輯路徑
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/401208.html
標籤:javascript html css Vue.js 无花果
