css半圆渐没
css吧
全部回复
仅看楼主
level 1
贴吧用户_7A3b1QR285
楼主
请问这个使用纯css如何实现???
2023年05月16日 02点05分
1
level 1
Leaf_小叶
就这屌玩意儿不简单吗,弄一个伪元素放中间,背景颜色渐变,伪元素填充它
2023年05月20日 14点05分
4
level 1
Leaf_小叶
最终效果,下面是代码
.box{
width:200px;
height:200px;
background:linear-gradient(to bottom,
#ff00da,#
1b00ff,
#111,#
000);
border-radius:50%;
position:relative;
}
.box::before{
content:"";
background:#000;
border-radius:50%;
position:absolute;
inset:2px;
}
2023年05月20日 14点05分
6
1