Pure CSS3 text color gradient - Is it possible?

前端 未结 4 994
予麋鹿
予麋鹿 2020-12-15 17:16

Is there a way to create a cross-browser, pure CSS3 text color gradient?

So, no png\'s. No \'webkit\' only.

EDIT: To be mo

4条回答
  •  暖寄归人
    2020-12-15 17:26

    There is no cross-browser way to do this outside webkit because only webkit currently has a background-clip: text, and this extension to background-clip is not on standards track (as far as I am aware). If you want to relax your CSS3 requirement, you can accomplish the same effect cross-browser with Canvas (or SVG), but then you're talking about HTML5-capable browsers only.

提交回复
热议问题