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;}