无法打开 SVG:错误: <path> 属性 d:预期的移动到路径命令("M"或"m"),"375,23.5c-3,0-5.…"



有人能帮我理解下面svg:中的错误吗

<svg version="1.1" 
xmlns="http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink" 
x="0px" 
y="0px"
viewBox="0 0 400 30" 
style="enable-background:new 0 0 400 30" 
xml:space="preserve">
<g stroke="#fff" fill="none">
<path d="375,23.5c-3,0-5.8-3.8-5.8-8.5s2.5-8.5,5.8-8.5c3,0,5.8,3.8,5.8,8.5C
381,19.7,
378,23.5,
375,23.5"/>
<path d="M35,23.5c-3,0-5.8-3.8-5.8-8.5s2.5-8.5,5.8-8.5"/>
<path d="M34.8,6.5h
340"/>
<path d="M34.8,23.5h
340"/>
</g>
<g font-size="12px">
<text text-anchor="end">
<tspan y="19" x="27">X</tspan>

</text>
<text text-anchor="start">
<tspan y="19" x="383">B</tspan>

</text>
<text text-anchor="middle">
<tspan y="19" x="">23424</tspan>

</text>
</g>
</svg>

我得到错误

错误:属性d:需要moveto路径命令('M'或'M'(,"375,23.5c-3,0-5……";。

我对svg约定一无所知:(

Path元素需要一个M或一个M作为第一个命令。你的第一条路缺少这一点。

<g stroke="#fff" fill="none">
<path d="M375,23.5c-3,0-5 ...

应该工作

最新更新