2013-02-21 35 views
0

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

.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

任何线索?

回答

0

这是Chrome中的一个已知错误。它在2012年11月首次被提到,目前是优先级2,所以在下一个版本中可能不会被修复。请参阅Chromium dev论坛here

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