我需要帮助在框的所有四边应用渐变边框。我尝试过,但它只适用于双方。看着所有的链接和SO答案后,我有这样的:CSS中的4个渐变边框
.test{
height:250px;
border: 2px solid;
border-image: linear-gradient(to left,rgba(78,137,176,1) 1%, rgba(115,192,85,1) 100%) 100% 0 100% 0/2px 0 2px 0;
padding-top:50px;
}
<div class="test">
This is a box and I want borders for all the sides
</div>
我希望得到任何帮助。我正在尝试类似于下面的图片。 谢谢。
我最近看到这一点:[Codepen.io(https://codepen.io/exah/pen/Lqyem) – RaisingAgent
@Vucko您已连接不工作正确的链接。我在发布问题之前检查了它 –
@RaisingAgent您附加的链接有帮助。如果它有效,我会尽快回复。谢谢你 –