SVG / Inkscape-“无法加载请求的文件”

问题描述 投票:0回答:1

希望外面有人知道SVG文件。我只是在浏览有关SVG图形的Mozilla教程,其中一个练习是在审查以下代码:

<?xml version="1.0" standalone="no"?>
<svg width="200" height="280" xmlns="http://www/w3.org/2000/svg" version="1.1">
    <polyline points="40 60 80 20 120 60" stroke="black" stroke-width="20"
                stroke-linecap="butt" fill="none" stroke-linejoin="miter"/>
    <polyline points="40 160 80 120 120 160" stroke="black" stroke-width="20"
                stroke-linecap="round" fill="none" stroke-linejoin="round"/>
    <polyline points="40 260 80 220 120 260" stroke="black" stroke-width="20"
                stroke-linecap="square" fill="none" stroke-linejoin="bevel"/>
</svg>

应该创建一个向上指向三个角度的图形。我还有其他8个SVG文件,它们可以毫无问题地转换为Inkscape。但是上面代码中的图形不会转换为Inkscape,并且Inkscape给了我这个错误:“无法加载请求的文件”有什么我想念的吗?我试图更改代码中的所有参数,以为图形可能太大,但仍然无法使用。

html svg inkscape
1个回答
0
投票

嗯,我回答了我自己的问题。我将SVG文件转换为HTML,然后在浏览器中打开了该文件,并显示了图形!

© www.soinside.com 2019 - 2024. All rights reserved.