我有一个圆形的背景图像.给它一个黄色边框.我想将边框更改为从黄色到白色的渐变.我见过许多带方形边框的例子,但没有应用于圆圈.这是我的代码:
.Profileimage{
background-image: url("images/profilePic.jpg");
background-repeat: no-repeat;
background-size: cover;
overflow:hidden;
-webkit-border-radius:50px;
-moz-border-radius:50px;
border-radius:50%;
width:100px;
height:100px;
border: 5px solid rgb(252,238,33);
}Run Code Online (Sandbox Code Playgroud)
<div class="Profileimage"></div>Run Code Online (Sandbox Code Playgroud)
谢谢!!