右边界渐变 [英] right border gradient
本文介绍了右边界渐变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图使< ul>
元素的右边框是线性渐变。
我试过下面但没有成功:
I am trying to make right border of an <ul>
element to be linear gradient.
I have tried following but with no success:
-webkit-border-image: -webkit-linear-gradient(top, #FE2EF7, #4AC0F2) 0 0 5px;
我使用Chrome。
非常感谢
I am using Chrome.
Many thanks
推荐答案
有一个解决方案,但我不知道你可以调整边框宽度: http://jsfiddle.net/u2ZE4/1/
There is a solution for that but I'm not sure you can adjust the border width: http://jsfiddle.net/u2ZE4/1/
-webkit-border-image: -webkit-gradient(linear, left top, left bottom, from(#e00), to(#fff))0 100% 0 0 stretch;
这篇关于右边界渐变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文