Gradient with Shape

前端 未结 2 1843
终归单人心
终归单人心 2021-01-28 16:02

I\'m trying to do a gradient on a button but I can\'t make it have the same gradient as the other part of the button. I tried adding a gradient inside a gradient but it doesn\'t

2条回答
  •  轮回少年
    2021-01-28 16:51

    That's because you are already using the linear-gradient property as a trick to create a triangle end on your button.

    You can't use the same property multiple times. If you want a triangle end, maybe stick with flat color on your button.

提交回复
热议问题