我想只使用css3或html5在Android上工作的漸變文字。我試着用css3,但在android上有一個小問題。我試過這個http://nicewebtype.com/notes/2009/07/24/pure-css-text-gradient-no-pngs/。這是它在android http://img121.imageshack.us/img121/5014/androidw.png中的樣子。有人可以告訴我如何解決它,或另一種方式來做到這一點,無論是用css3還是html5 canvas?Android網頁開發問題
header h1 {
position: relative;
display:inline-block;
margin-top: 0px;
background: rgba(0,0,0,0);
margin: 23px 0 0 77px;
}
header h1 a {
color: #fff;
position: absolute;
background: rgba(0,0,0,0);
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)),to(rgba(0,0,0,0)));
}
header h1:after {
content: 'Company name';
background: rgba(0,0,0,0);
text-shadow: -1px 1px 2px #232323;
color: #dadada;
}
我不明白這是如何工作的文字,因爲這是背景漸變,我需要文字漸變。如果我錯了,請回答我。 – Nikolay 2011-04-12 12:42:08