SVG 与 Inkscape 使用全解析
1. SVG 基础元素与命名空间
在 SVG 中, <image> 元素可用于链接外部 PNG 格式的图像文件,示例如下:
<image xlink:href="/dir/portrait.png" width="200" height="100"/>
手动编辑 SVG 文件并尝试在 Inkscape 中加载时,常见的命名空间错误包括未为前缀声明命名空间或使用错误的命名空间 URL,需格外留意。
典型的 Inkscape SVG 文档的根元素 <svg> 包含多个命名空间声明和其他属性:
<svg xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodip
超级会员免费看
订阅专栏 解锁全文
9119

被折叠的 条评论
为什么被折叠?



