开发者

CSS: why does this css rule not work in google Chrome

开发者 https://www.devze.com 2023-02-05 21:48 出处:网络
b开发者_如何转开发ackground-image: -webkit-linear-gradient(red, green, blue); I just want my page looks same in Chrome, while some element is styled by a IE filter:
b开发者_如何转开发ackground-image: -webkit-linear-gradient(red, green, blue);

I just want my page looks same in Chrome, while some element is styled by a IE filter:

filter: progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr=#88888888,endColorstr=#88CCCCCC);


I suppose you need -webkit-gradient. To make as your ie filter you need to use the following:

background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#888), color-stop(100%,#88C)); 


Do you have the latest nightly developer build?

http://blogs.sitepoint.com/2011/01/18/webkit-updates-css3-gradient-support-matches-mozilla-syntax/


-webkit-linear-gradient works on Chrome 10+

0

精彩评论

暂无评论...
验证码 换一张
取 消