各位HTML高手 请问一下这样有点无规矩的渐变的背景在CSS里怎么写啊 小弟不胜感谢啊
2个回答
展开全部
css3 有个渐变 挺适合你用的
.linear{
width:1260px;
margin:0 auto;
height:100%;
FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#b8c4cb,endColorStr=red); /*IE 6 7 8*/
background: -ms-linear-gradient(top, #fff, #E4E5E7); /* IE 10 */
background:-moz-linear-gradient(top,#b8c4cb,#E4E5E7);/*火狐*/
background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#b8c4cb), to(#E4E5E7));/*谷歌*/
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#E4E5E7)); /* Safari 4-5, Chrome 1-9*/
background: -webkit-linear-gradient(top, #fff, #E4E5E7); /*Safari5.1 Chrome 10+*/
background: -o-linear-gradient(top, #fff, #E4E5E7); /*Opera 11.10+*/
position: absolute;
bottom: 0px;
}
.linear{
width:1260px;
margin:0 auto;
height:100%;
FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#b8c4cb,endColorStr=red); /*IE 6 7 8*/
background: -ms-linear-gradient(top, #fff, #E4E5E7); /* IE 10 */
background:-moz-linear-gradient(top,#b8c4cb,#E4E5E7);/*火狐*/
background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#b8c4cb), to(#E4E5E7));/*谷歌*/
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#E4E5E7)); /* Safari 4-5, Chrome 1-9*/
background: -webkit-linear-gradient(top, #fff, #E4E5E7); /*Safari5.1 Chrome 10+*/
background: -o-linear-gradient(top, #fff, #E4E5E7); /*Opera 11.10+*/
position: absolute;
bottom: 0px;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询