【发布时间】:2019-05-09 14:32:19
【问题描述】:
在 Inkscape 中导入以下 SVG 文件仅显示文本,但忽略 <use> 语句(或它引用的组)。它是错误还是功能?有什么要改变的吗?顺便说一句,<g> 组比示例文件中的组更复杂。该文件在 Chrome 中正确显示。 (Windows 10,Inkscape 最新)
谢谢! 马里奥
<svg width="400" height="200" x="0" y="0"
xmlns="http://www.w3.org/2000/svg">
<defs>
<g id="plus">
<circle cx="40" cy="30" r="20" stroke="#FF0000" fill="none"></circle>
</g>
</defs>
<svg x="100" y="50">
<rect x="1" y="1" width="78" height="86" rx="10" ry="10" stroke="#0000FF" fill="none"></rect>
<use href="#plus"></use>
<text x="20" y="74" width="68" height="26">ABCD</text>
</svg>
</svg>
【问题讨论】: