[html]
input {border:0px;font-size:12px;align:center;width:60px;height:24px;}
.a {filter:progidXImageTransform.Microsoft.gradient(startcolorstr=#00b1ff,endcolorstr=#0054b7,gradientType=0);}
.b {filter:progidXImageTransform.Microsoft.gradient(startcolorstr=#bfee00,endcolorstr=#94b800,gradientType=0);}
.c {filter:progidXImageTransform.Microsoft.gradient(startcolorstr=#fccf00,endcolorstr=#fa9104,gradientType=0);}
.d {filter:progidXImageTransform.Microsoft.gradient(startcolorstr=#fd40c0,endcolorstr=#e00289,gradientType=0);}
.e {filter:progidXImageTransform.Microsoft.gradient(startcolorstr=#fd0004,endcolorstr=#d10000,gradientType=0);}
档橡团
[/html]
color:red; /*设成红色*/
可以试试
用ps处理一下文字,把他变成文字图片,然后用js去调用文字图片。
CSS是没法直接定义字体渐变色的,只有用图片来实现
以上就是土嘎嘎小编大虾米为大家整理的css文字渐变色代码_HTML5做文字渐变的方法相关主题介绍,如果您觉得小编更新的文章对您有所帮助,不要忘记讲本站分享给您身边的朋友哦!!