【发布时间】:2016-12-18 13:12:30
【问题描述】:
我在 SVG 文件中有这个渐变代码:
<linearGradient id="SVGRD" gradientUnits="userSpaceOnUse" x1="-243.3" y1="1257.3" x2="-242.3" y2="1257.3" gradientTransform="matrix(-64.7347 -199.2328 -199.2328 64.7347 234813.9219 -129743.9844)">
<stop offset="0" style="stop-color:#B3B3B3"/>
<stop offset="0.45" style="stop-color:#B3B3B3;stop-opacity:0.22"/>
<stop offset="1" style="stop-color:#B3B3B3;stop-opacity:0"/>
</linearGradient>
<path style="fill:url(#SVGRD);" d="M142.7,133L105,18.5H0V133H142.7z"/>
它似乎在 IE11 中不起作用。路径渲染时没有渐变和仅填充颜色。
SVG 被实现为图像。有什么建议?提前致谢!
【问题讨论】:
标签: internet-explorer svg linear-gradients