Gif图像在chrome中不起作用,但在firefox和ie中工作

时间:2016-05-02 18:29:46

标签: html html5 google-chrome animated-gif

我在我的html中加入了一个gif图片

.col-xs-8{

  background-color:red;
  overflow-y:scroll;
  max-height: 100vh;
}

的CSS:

<div id="overlay-inAbox8">
  <div class="wrapper" id="overlay-inAbox8wrapper">
    <img id="loading-gif" src="{% static 'loading.gif' %}" />
  </div>
</div>

动画gif在Chrome中显示为静态图像,但在Firefox中正确显示,即

当我尝试在chrome中显示gif时,它可以正常工作。

1 个答案:

答案 0 :(得分:0)

您是否检查过firefox和chrome的自动重复值? 默认情况下为firefox:auto重复“on”。 默认情况下为firefox:auto repeat“off”。