How to add multiple css gradient as a multiple background?

前端 未结 1 1701
[愿得一人]
[愿得一人] 2020-12-09 21:03

I want to make a button like this without using image by gradients as multiple background. is it possible?

\"ent

相关标签:
1条回答
  • 2020-12-09 21:52

    You can define multiple gradients comma-separated. E.g.:

    .customStyleSelectBox {
        ...
        background: linear-gradient(#fff, #999) no-repeat border-box, linear-gradient(#eee, #777) no-repeat border-box;
        background-size: 98px 50px, 18px 50px;
        background-position: 0 0, 98px 0;
        background-origin: padding-box, padding-box;
    }
    

    Also see your updated jsfiddle.

    0 讨论(0)
提交回复
热议问题