真的业余的问题在这里 – 身体背景梯度不工作在铬,非常奇怪,我试过:
background: -webkit-gradient(linear,0 0,0 bottom,from(#FFF),to(#000));
和
background: -webkit-gradient(linear,0%,100%,from(#fff),center top,center bottom,to(#000));
一切都无济于事!在其他浏览器中运行…
解决方法
你有没有尝试过:
background: -webkit-linear-gradient(#917c4d,#ffffff);
WebKit更新以匹配规范语法,所以你应该have this to get maximum browser support:
background: -webkit-gradient(linear,from(#917c4d),to(#ffffff)); background: -webkit-linear-gradient(#917c4d,#ffffff); background: -moz-linear-gradient(#917c4d,#ffffff); background: -o-linear-gradient(#917c4d,#ffffff); background: -ms-linear-gradient(#917c4d,#ffffff); background: linear-gradient(#917c4d,#ffffff);