我試圖使用文本漸變,它適用於Chrome & Safari,但在Android上,它將漸變應用於內容而不是文本(所以不是使用漸變看到文本,您會看到一個帶有漸變的框 - 並不理想,尤其是因爲文本很重要)。Android上的CSS3文字漸變不起作用
這裏是我的SASS混入:
@mixin text-gradient($from : #2bd2f2, $to : #218bb2) {
text-shadow: none;
background: -webkit-gradient(linear, left top, left bottom, from($from), to($to));
-webkit-background-clip: text;
-moz-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
}
任何想法,爲什麼這不工作?
謝謝!
我認爲你必須使用供應商前綴的漸變..怎麼樣,你使用-webkit-的Chrome瀏覽器一樣就不得不提到的所有瀏覽器供應商前綴像-moz- ,-o- – Gopikrishna 2013-02-28 11:00:19
是不是android的webkit,但? – Garrett 2013-03-06 10:35:21