Flash 对象的后备图像 [英] fallback image for flash object
本文介绍了Flash 对象的后备图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我想要一个图像来显示这个 Flash 是否无法加载,我该怎么做?
解决方案
您可以将 object
标签包裹在 div
中并应用 background-image
到 div
.
CSS:
.wrapper{背景: url(path/to/image.png);}
HTML:
<对象..
If i want a image to show if this flash cannot be loaded how do i do that?
<object width="574" height="143">
<param name="movie" value="/upload/attachments/1391/139130/iphone_banner.swf">
<embed src="/upload/attachments/1391/139130/iphone_banner.swf" width="574" height="143">
</embed>
</object>
解决方案
You could wrap the object
tag in a div
and apply a background-image
to the div
.
CSS:
.wrapper
{
background: url(path/to/image.png);
}
HTML:
<div class="wrapper">
<object..
</div>
这篇关于Flash 对象的后备图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文