Gradient borders

后端 未结 17 1408
一个人的身影
一个人的身影 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:26

    Webkit supports gradients in borders, and now accepts the gradient in the Mozilla format.

    Firefox claims to support gradients in two ways:

    1. Using border-image with border-image-source
    2. Using border-right-colors (right/left/top/bottom)

    IE9 has no support.

提交回复
热议问题