Creating transparent text to show gradient color of underlying div

前端 未结 6 1037
悲&欢浪女
悲&欢浪女 2021-01-13 16:53

I am trying to create gradient text with plain HTML and CSS. Something like the text below

Check the FIDDLE. It is self explanatory.

I know how to achieve th

6条回答
  •  醉梦人生
    2021-01-13 17:34

    I think you are looking for background-clip. The catch is that you need to use an image, you can't use a css gradient afaik

    update: it's only supported on webkit though..

提交回复
热议问题