moz-linear-gradient属性兼容情况的处理,在给企业客户构建企业网站建设过程中,有碰到透明层背景显示的兼容情况问题:处理结
果如下:
[css]
{
background: -ms-linear-gradient(top, rgba(33,33,33,.7),rgba(33,33,33,.7),rgba(33,33,33,.7), rgba(33,33,33,.7));
background: -moz-linear-gradient(top,rgba(33,33,33,.7),rgba(33,33,33,.7),rgba(33,33,33,.7), rgba(33,33,33,0.7));
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(33,33,33,.7)), to(rgba(33,33,33,0.7)));
background: -webkit-linear-gradient(top, rgba(33,33,33,.7), rgba(33,33,33,.7),rgba(33,33,33,.7), rgba(33,33,33,0.7));
background: -o-linear-gradient(top, rgba(33,33,33,.7), rgba(33,33,33,.7),rgba(33,33,33,.7), rgba(33,33,33,0.7));
}
[/css]
实现效果:
相关企业网站建设教程,请持续关注我们!相关企业需求,请联系我们!
注:本篇教程,未经允许,不得转载!