Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Animation SVG图像格式动画在IE11中不起作用_Animation_Svg - Fatal编程技术网

Animation SVG图像格式动画在IE11中不起作用

Animation SVG图像格式动画在IE11中不起作用,animation,svg,Animation,Svg,我创建了一个简单的SVG动画图像文件,不幸的是,我发现尽管它正在显示动画,但在ie11中却无法工作。有什么想法吗 <?xml version="1.0" encoding="utf-8"?> <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 100 100" style="e

我创建了一个简单的SVG动画图像文件,不幸的是,我发现尽管它正在显示动画,但在ie11中却无法工作。有什么想法吗

<?xml version="1.0" encoding="utf-8"?>

<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 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">

<style type="text/css">
    .track{fill:#D1D3D4;}
    .marker{fill:#899FBC;}
</style>

<path class="track" d="M50,0C22.4,0,0,22.4,0,50s22.4,50,50,50s50-22.4,50-50S77.6,0,50,0z M50,95.2C25,95.2,4.8,75,4.8,50
    S25,4.7,50,4.7S95.2,25,95.2,50S75,95.2,50,95.2z"/>

    <path class="marker" d="M95.2,50h4.8c0-27.6-22.4-50-50-50v4.8C75,4.7,95.2,25,95.2,50z">

    <animateTransform
        attributeType="xml"
        attributeName="transform"
        type="rotate"
        from="0 50 50"
        to="360 50 50"
        dur=".8s"
        repeatCount="indefinite"
    />

</path>

</svg>

.track{fill:#D1D3D4;}
.marker{fill:#899FBC;}

IE本机不支持SMIL。有一个名为polyfill的函数可以为IE提供SMIL支持。IE本机不支持SMIL。有一个名为polyfill的程序可以为IE提供SMIL支持。