Home  >  Article  >  Web Front-end  >  css背景颜色渐变_html/css_WEB-ITnose

css背景颜色渐变_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:51:561681browse

1.效果


2.代码

        /* 基本色 */	background: #3FB0AC;	/* chrome 2+, safari 4+; multiple color stops */	background-image:-webkit-gradient(linear,  left top, left bottom, color-stop(1, #3FB0AC), color-stop(1, #C5D7A1));	/* chrome 10+, safari 5.1+ */	background-image: -webkit-linear-gradient(#3FB0AC,#C5D7A1);	/* firefox; multiple color stops */	background-image: -moz-linear-gradient(top,#3FB0AC,#C5D7A1,#C5D7A1);	/* ie 6+ */	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3FB0AC', endColorstr='#C5D7A1');	/* ie8 + */	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#3FB0AC', endColorstr='#C5D7A1')";	/* ie10 */	background-image: -ms-linear-gradient(#3FB0AC, #C5D7A1);	/* opera 11.1 */	background-image: -o-linear-gradient(#3FB0AC, #C5D7A1);	/* 标准写法 */	background-image: linear-gradient(#3FB0AC, #C5D7A1);


3.问题

亲测以上方式在firefox31下不可行,求高人给出firefox可行方案



我的个人博客:http://blog.caicongyang.com ;

我的个人网站:http://www.caicongyang.com ;

我的CSDN博客地址: 





Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn