2010-11-30 43 views
1

有可能风格的背景,像梯度: background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc));有没有简单的方法来设置渐变样式文本?

有没有一种办法风格的文本与渐变我一直在寻找像某事: color-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc));但无法找到任何简单。

感谢您的帮助。

回答

1

是可能的。您只需将背景图像与背景剪辑合并:text:请参阅this most excellent example

background: url(/bgclip/img/paint.png) repeat, white; 
-webkit-text-fill-color: transparent; 
-webkit-background-clip: text; 
+0

当然,但它的webkit只有atm。 – meo 2010-12-01 10:11:59

相关问题