Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer IE 7-10的多站线性渐变_Internet Explorer_Css_Linear Gradients - Fatal编程技术网

Internet explorer IE 7-10的多站线性渐变

Internet explorer IE 7-10的多站线性渐变,internet-explorer,css,linear-gradients,Internet Explorer,Css,Linear Gradients,因此,我只熟悉使用过滤器和饼图的简单渐变,但如何使用相同的工具进行多次停止/启动渐变 background-image: -moz-linear-gradient(center bottom , #0C355C 0%, #082540 50%, #0C355C 51%, #0F4476 100%); background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #0C355C), color-sto

因此,我只熟悉使用过滤器和饼图的简单渐变,但如何使用相同的工具进行多次停止/启动渐变

background-image: -moz-linear-gradient(center bottom , #0C355C 0%, #082540 50%, #0C355C 51%, #0F4476 100%);
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #0C355C), color-stop(0.5, #082540), color-stop(0.51, #0C355C), color-stop(1, #0F4476));

您应该使用以下选项:

例如:

background: #1e5799; /* Old browsers */
background: -moz-linear-gradient(top,  #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1e5799), color-stop(50%,#2989d8), color-stop(51%,#207cca), color-stop(100%,#7db9e8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* IE10+ */
background: linear-gradient(to bottom,  #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */

(简单的方法)IE渐变滤镜只允许2个颜色停止(第一个和最后一个),如果需要3个或更多,这对OP没有多大帮助。是的,这是一个问题。这可以用馅饼来完成吗?或者我有图像的路径吗?@user82302124:PIE在这里没有帮助,传统的图像是最好的选择,这就是我最终要做的-只是一个图像。多顶部渐变是colorzilla上的一个选项。请选中“ie9支持”复选框。它为您提供了一个类似于
background:url(数据:image/svg+xml;base64,pd94bwgdmvyc2lv……
的svg回退,并且需要一些额外的条件注释。