【发布时间】:2011-07-26 07:00:22
【问题描述】:
@include linear-gradient(color-stops(#e2e2e2, #fff 600px), top);
会产生类似的东西
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #e2e2e2), color-stop(100%, #ffffff));
^ this is not 600px
我还从this post 了解到,在 webkit 中我应该使用类似 600 而不是 600px 的东西。
指南针不这样做吗?
我还需要添加background-repeat: no-repeat 否则渐变会在 webkit 中重复?
【问题讨论】:
标签: css sass compass-sass