Gradient borders

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

    For cross-browser support you can try as well imitate a gradient border with :before or :after pseudo elements, depends on what you want to do.

提交回复
热议问题