当我尝试在旧的IE浏览器中渲染SVG时,我使用了svgweb项目。最近我遇到了svgweb中的错误585。https://code.google.com/p/svgweb/issues/detail?id=585&q=visibility
在下面的示例中,矩形在IE中保持隐藏状态,但在Chrome中一秒后显示。
<set xlink:href="#testRect" attributeName="visibility" attributeType="XML" begin="1s" end="2s" from="hidden" to="visible" fill="freeze"/>
<rect id="testRect" x="0" y="100" width="300" height="150" fill="#A68064" visibility="hidden" />发布于 2013-11-11 18:16:33
我已经找到了一种解决方法。在设置可见性之前,动态设置元素的填充或描边会产生正确的行为。
<set xlink:href="#testRect" attributeName="fill" attributeType="XML" begin="0s" end="1s" from="#A68064" to="#A68064"/>
<set xlink:href="#testRect" attributeName="visibility" attributeType="XML" begin="1s" end="2s" from="hidden" to="visible" fill="freeze"/>
<rect id="testRect" x="0" y="100" width="300" height="150" fill="#A68064" visibility="hidden" />https://stackoverflow.com/questions/19903821
复制相似问题