您的位置:首页 > Web前端 > CSS

css3渐变

2015-11-12 10:01 459 查看


以这个效果为例:这是一个从  #dc6226 渐变到  #535e64

在Mozilla 、Webkit、 Opera
下的使用方式

background: -moz-linear-gradient(left,#dc6226,#535e64);
background: -webkit-linear-gradient(left,#dc6226,#535e64);
background: -o-linear-gradient(left,#dc6226,#535e64);

在IE的使用方式:

filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#dc6226, endColorstr=#535e64);/*IE<9>*/
-ms-filter: "progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#dc6226, endColorstr=#535e64)";/*IE8+*/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: