请参考下面的代码。SVG动画无法在IE9/IE10中使用,但可在Firefox和Chrome中使用
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<clipPath id="curtainClip">
<rect id="clipRect" x="0" y="0" width="100" height="100"/>
</clipPath>
</defs>
<animate xlink:href="#clipRect"
attributeName="width"
dur="15s"
from="0"
to="100" />
<path clip-path="url(#curtainClip)" stroke="red" d="M 0 0 L 100 100"/>
</svg>
SVg animate元素在IE浏览器中不起作用。我怎样才能解决这个问题 ?无论是在IE10浏览器中的错误还是我需要添加任何进一步的代码在IE浏览器中工作。
我已提及以下链接。
Can't make SVG animation work with ie9 and firefox
感谢,
湿婆
你是否在IE的调试模式下得到任何javascript错误? – 2013-03-08 08:55:12
IE中没有javascript错误。显示svg组件,但动画只在IE中不起作用。 – SivaRajini 2013-03-08 08:59:49