CSS3 Text Gradients not working?

后端 未结 4 890
天命终不由人
天命终不由人 2021-01-29 09:15

I am trying to apply pure CSS3 Gradients (no images, etc.) on some text but the text remains un-changed.

My current code is:





        
4条回答
  •  广开言路
    2021-01-29 09:37

    I was able to produce gradient text in Chrome using:

    h1 {
      font-size: 72px;
      background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#333));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    

提交回复
热议问题