我想在纯css3中复制绿色正方形图像。你可以在这里看到图像:具有渐变边框的CSS3圆圈?
到目前为止,我已经设法生成了正方形,看起来就像图像中的一个。问题是广场上的圆圈的边界。正如你所看到的图像在该圆的边界梯度和我的是不是(见小提琴),我不知道如何在CSS复制这个...
Here is my fiddle of the square
CSS代码我我目前使用:
.greenBlock, .greenCore {
background-color: #00c200;
border: 3px solid;
border-top-color: #00de00;
border-right-color: #006900;
border-bottom-color: #006900;
border-left-color: #00de00;
z-index: 10;
width: 42px;
height: 42px;
}
.greenCore {
width: 22px;
height: 22px;
border-radius: 50%;
-webkit-transform: translate(25%, 25%);
transform: translate(25%, 25%);
}
我该如何在CSS3中做这种渐变圆形边框?
非常感谢
非常好,谢谢! – Maurice 2014-10-12 12:48:27