border-top-color
是#9b9c9d
和border-bottom-color
是#f6f9fc
。_ 渐变旨在border-left
将和上的顶部颜色转换为底部颜色border-right
。
我如何混合border-left-image
andborder-right-image
与border-top-color
and border-bottom-color
?
HTML
<a class="button-style">Evil Whales</a>
CSS
.button-style
{
background: linear-gradient(to bottom,
rgba(129,232,117,1) 0%,
rgba(129,232,117,1) 50%,
rgba(62,179,48,1) 51%,
rgba(62,179,48,1) 100%);
border-top-color: #9b9c9d;
border-left-image: linear-gradient(to bottom,
rgba(155,156,157,1) 0%,
rgba(246,249,252,1) 100%);
border-bottom-color: #f6f9fc;
border-right-image: linear-gradient(to bottom,
rgba(155,156,157,1) 0%,
rgba(246,249,252,1) 100%);
border-style: solid;
}