簡體   English   中英

swf gif 的 HTML5 回退(swf in<img/> 標簽)

[英]HTML5 Fallback for swf gif (swf in <img/> tag)

我有這樣的代碼

<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>

我需要為此提供 html5 后備,我不太確定如何做到這一點,它不是視頻而是 gif rahter。 我一直在尋找這個,但沒有找到任何令人滿意的東西。

我認為你可以這樣做:

<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>

希望能有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM