使用这个渐变生成器将有助于跨浏览器支持:
http://www.colorzilla.com/gradient-editor/
你甚至可以从以前的 css 中导入我导入了你的渐变,这就是它所提供的
background: -moz-linear-gradient(top, rgba(240,240,240,1) 1px); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(1px,rgba(240,240,240,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(240,240,240,1) 1px); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(240,240,240,1) 1px); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(240,240,240,1) 1px); /* IE10+ */
background: linear-gradient(to bottom, rgba(240,240,240,1) 1px); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f0f0', endColorstr='#f0f0f0',GradientType=0 ); /* IE6-9 */
该代码可能不是您想要的,但您可以尝试使用渐变生成器并添加您自己的停靠点和所有内容。