【发布时间】:2018-04-28 19:42:06
【问题描述】:
你能帮我解决这个问题吗...我有 SVG,它在 Chrome 和其他设备中运行良好,但当然 IE 存在问题。
是否有任何选项可以使其与 IE 一起使用(据我所知没有)?所以也许你可以为识别用户浏览器的代码显示一个选项,当它是 Chrome、Firefox 或 Safari 时,它将运行动画 svg,如果它是 IE,它将显示其他图像。
我试过<comment>,但我不能让它工作......
感谢您的帮助...
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 193" enable-background="new 0 0 374 193">
<style>
#linia {
animation: draw 7s ease ;
stroke-dasharray: 1500;
}
@keyframes draw {
0% {stroke-dashoffset: 1500}
100% {stroke-dashoffset: 0}
}
</style>
<path id="linia" d="M620.6,157.9c3.9,0,4.8,1.8,4.4,4.6l-3.6,29.4c-1.8,14.1-11.3,28.1-43,28.1c-27.9,0-37.9-12-37.9-25 				c0-1.1,0.2-3,0.3-4.4l6.9-56.8c1.6-14.1,11.3-28.1,43-28.1c27.9,0,37.9,12,37.9,25.1c0,1-0.2,2.6-0.3,4.4l-0.5,4.4 				c-0.3,3.4-1.8,4.9-5.3,4.9h-16.9c-3.4,0-4.6-2-4.1-4.9l0.2-1.1c0.2-1.1,0.2-2,0.2-2.6c0-5.4-4.8-8-12.3-8 				c-7.9,0-14.3,3.1-15.3,10.7l-5.9,47.3c-0.2,1.1-0.3,2.5-0.3,3.3c0,6.1,4.6,8.7,12.5,8.7c8.9,0,14.3-3.1,15.1-10.7l0.8-7.1H583 				c-3.4,0-4.8-1.5-4.3-4.8l1.6-12.8c0.3-3.4,2-4.6,5.4-4.6H620.6z" fill="none" stroke="#CF0a2c" stroke-width="1" stroke-miterlimit="10">
<animate id="1" attributeName="fill" from="#fff" to="#CF0A2C" begin="2s" dur="1s" fill="freeze" repeatCount="1"></animate>
</path>
</svg>
【问题讨论】:
标签: internet-explorer animation svg