is it possible to have 2 different background colors for a button (well css button)

前端 未结 4 793
走了就别回头了
走了就别回头了 2021-01-16 23:00

What I want to achieve is something like this.

::::::::::
...hi....
..........
..........
The hi is in the middle of the 2 colors.

I have

4条回答
  •  北海茫月
    2021-01-16 23:42

    You could create a css gradient with two stops really close to each other: firefox css gradients. It won't be cross browser yet. The second example on this page is pretty close to what you want: webkit simple gradients (only in webkit).

提交回复
热议问题