镀铬问题与成角度的CSS渐变背景

时间:2013-02-21 18:36:24

标签: google-chrome css3 css

我遇到了CSS渐变背景的问题,我有100%的宽度/高度div。这只是Chrome中的一个问题。我在div上面有一些内容,当我将鼠标悬停在该div中的链接上时,渐变背景以奇怪的方式中断,并且根本不显示角度(仅显示为水平渐变)。这是我的css:

.landing{
display: block;
width: 100%;
min-height: 100%;
background: #f6e25a;
background: -moz-linear-gradient(-80deg,#f6e25a 0%,#f6e25a 35%,#f8e979 35.01%,#f6e25a 100%);
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#f6e25a), color-stop(35%,#f6e25a), color-stop(35.1%,#f8e979), color-stop(100%,#f6e25a));
background: -webkit-linear-gradient(-80deg,#f6e25a 0%,#f6e25a 35%,#f8e979 35.01%,#f6e25a 100%);
background: -o-linear-gradient(-80deg,#f6e25a 0%,#f6e25a 35%,#f8e979 35.01%,#f6e25a 100%);
background: -ms-linear-gradient(-80deg,#f6e25a 0%,#f6e25a 35%,#f8e979 35.01%,#f6e25a 100%);
background: linear-gradient(150deg,#f6e25a 0%,#f6e25a 35%,#f8e979 35.01%,#f6e25a 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6e25a', endColorstr='#f6e25a',GradientType=1 );
}

以下是Chrome中的内容:

image

任何线索?

1 个答案:

答案 0 :(得分:0)

这是Chrome中的已知错误。它于2012年11月首次发现,目前是优先级2,因此可能无法在下一版本中修复。请参阅Chromium dev论坛here

如果您稍微改变角度,它应该再次起作用。尝试使用-78deg而不是-80deg

相关问题