Gradient borders

后端 未结 17 1419
一个人的身影
一个人的身影 2020-11-22 03:40

I\'m trying to apply a gradient to a border, I thought it was as simple as doing this:

border-color: -moz-linear-gradient(top, #555555, #111111);
         


        
17条回答
  •  清酒与你
    2020-11-22 04:41

    Mozilla currently only supports CSS gradients as values of the background-image property, as well as within the shorthand background.

    — https://developer.mozilla.org/en/CSS/-moz-linear-gradient

    Example 3 - Gradient Borders
    
    border: 8px solid #000;
    -moz-border-bottom-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;
    -moz-border-top-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;
    -moz-border-left-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;
    -moz-border-right-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;
    padding: 5px 5px 5px 15px; 
    

    — http://www.cssportal.com/css3-preview/borders.htm

提交回复
热议问题