我不明白为什么此渐变不适用于Chrome/Firefox/IE。SVG linearGradient不显示路径(多浏览器)
它在svg编辑器(浏览器内)和Inkscape中工作。
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" height="300" width="85" version="1.1">
<defs>
<linearGradient id="fill_bg" x2="0.5">
<stop stop-color="#8e8e8e" offset="0"/>
<stop stop-color="#d6d6d6" offset="0.59766"/>
</linearGradient>
</defs>
<g>
<path d="m3.5,16.5c12.5,6.6507,21,6.6507,33,0v271.47c-12.5,7.1172-22,7.1172-33,0v-135.74-135.73,0.00002,0.00001,0.00002,0.00001z" stroke="#352c2c" fill="url(#fill_bg)"/>
</g>
</svg>
的行程显示正确,但将填充缺少完全(透明),
难道我用的东西,浏览器不支持?
我在这里引用你的问题:http://stackoverflow.com/questions/38803429/gradient-of-svg-in-html-page-not-working ---也许你有一个想法? – sasha 2016-08-06 10:51:02