這是我的屏幕截圖, 您可以在左上方看到模糊的邊緣, 我是CSS新手, 請爲此問題提供解決方案。如何在CSS邊框形狀中創建平滑邊緣?
.shape {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: #9966ff;
outline: 1px solid transparent;
box-shadow: 0 0 1px rgba(255, 255, 255, 0);
}
.shape:after {
content: '';
border-right: 1500px solid rgba(0, 0, 0, 0);
border-top: 250px solid rgba(255, 255, 255, 1);
border-left: 1500px solid rgba(255, 255, 255, 1);
float: right;
}
<div class="shape"></div>
如何創建平滑的邊緣? – Aravind
請提供你的代碼? – aswathy