【发布时间】:2017-12-06 05:47:15
【问题描述】:
我相信这是重复的,但无论我做什么,它总是无法加载第二对 svg 标签。编辑:这不会正确显示在代码块或整个问题中,所以这里是:Pastebin: SVG Error
link : jiLwDp4A I'm not really sure what to put here, I just joined.
【问题讨论】:
我相信这是重复的,但无论我做什么,它总是无法加载第二对 svg 标签。编辑:这不会正确显示在代码块或整个问题中,所以这里是:Pastebin: SVG Error
link : jiLwDp4A I'm not really sure what to put here, I just joined.
【问题讨论】:
您有重复的id 属性(“一”和“二”)。 ID必须在文档中是唯一的。
考虑您的begin="0s; two.end"。浏览器应该在这里使用哪个<animate> 元素和id="two"?
更改第二个 SVG 以使用不同的 id 属性。
【讨论】:
<animate id="three" begin="0s; four.end" attributeName="stroke-dashoffset" from="1000" to="0" dur="4s" fill="freeze" /> <animate id="four" begin="three.end" attributeName="stroke-dashoffset" from="0" to="1000" dur="4s" fill="freeze" />