right border gradient

前端 未结 2 1314
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 16:30

I am trying to make right border of an

    element to be linear gradient.
    I have tried following but with no success:

    -webkit-border-         
    
    
            
2条回答
  •  时光取名叫无心
    2021-01-19 16:56

    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;
    

提交回复
热议问题