作者tyf99 (呵呵)
看板Web_Design
标题[问题] linear-gradient 的问题.
时间Wed May 17 10:05:18 2017
在弄 transition 时碰到的
https://jsfiddle.net/q4zyu33f/
一般浏览器能正常显示,主要是 CSS3 验证不过
说 background-color 里面没有 linear-gradient 这一项
tr:hover Value Error : background-color
linear-gradient(#ddf,#cce) is not a background-color value
若改成 background: linear-gradient() 的话,CSS3 验证就会过
但这时 transition 就没用了 (就算改 transition: all 也一样)
这是遇到规范外的情况了吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.47.184.67
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Web_Design/M.1494986722.A.058.html
1F:推 jmlntw: linear-gradient 目前不支援 transition 05/17 12:08
2F:→ jmlntw: 另外渐层是属於background-image (background是shorthand) 05/17 12:10