gif 动画未在刷新时播放 [英] gif animation not playing on refresh
本文介绍了gif 动画未在刷新时播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我第一次查看带有动画 .gif 的页面时,它在页面加载时播放良好(持续约 2 秒).
First time I view the page with an animated .gif it plays fine on page load (lasts about 2 secs).
刷新 (F5) 时,.gif 不再播放,仅显示 gif 动画的最后一帧.
On refresh (F5), the .gif no longer plays and only the last frame of gif animation is shown.
我能做些什么来确保它每次都能播放吗?
Is there anything I can do do to make sure it plays everytime?
推荐答案
对于 PHP 来说,使用 date("Ymdgis");
更好的选择是使用 time()
代码>,像这样:
For the PHP the much better option then using date("Ymdgis");
is using time()
, like this:
<img src="picturePath.gif?<?php echo time();?>" />
这篇关于gif 动画未在刷新时播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文