0
线性渐变背景属性在safari浏览器中不起作用。我试着用-webkit-前缀也尝试过,但没有结果。怎么了?safari中的线性渐变不起作用
这里是代码:
HTML:
<header>
<div class="container">
<div class="logo">
<img src="images/logo.png" alt=""/>
</div>
</div>
</header>
CSS:
.container{max-width:1550px;margin:0 auto;border:1px solid red;}
.clear{clear:both;}
header{width:100%;float:left;position:relative;background:linear-gradient(to right, #e9eae2 0%,#e9eae2 59%,#7acec3 59%,#7acec3 100%);background:-webkit-linear-gradient(to right,#e9eae2 0%,#e9eae2 59%,#e9eae2 59%,#e9eae2 100%);}
.logo{float:left;}