[英]HTML5 Fallback for swf gif (swf in <img/> tag)
I've code like this我有这样的代码
<div style="text-align:center; margin-bottom: 10px;">
<iframe frameborder="0" height="150" scrolling="no"
src="/img/iness_banner150x150_2016_podpora.swf" width="150">
</iframe>
</div>
and I need to provide html5 fallback for that and I'm quite not sure how to do that, it's not a video but a gif rahter.我需要为此提供 html5 后备,我不太确定如何做到这一点,它不是视频而是 gif rahter。 I've been searching for this but did not find anything satisfying.我一直在寻找这个,但没有找到任何令人满意的东西。
I think that you can do that like this :我认为你可以这样做:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="150" height="150">
<param name="movie" value="/img/iness_banner150x150_2016_podpora.swf">
<object type="application/x-shockwave-flash" width="150" height="150">
<param name="movie" value="/img/iness_banner150x150_2016_podpora.swf">
<iframe src="/img/your_image.gif" width="150" height="150" frameBorder="0" scrolling="no"></iframe>
</object>
</object>
Hope that can help.希望能有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.