闪回对象的后备图像 [英] fallback image for flash object
本文介绍了闪回对象的后备图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<对象宽度如果我想要一个图片显示这个flash是不是可以加载的,我怎么做? =574height =143>
< param name =movievalue =/ upload / attachments / 1391/139130 / iphone_banner.swf>
< embed src =/ upload / attachments / 1391/139130 / iphone_banner.swfwidth =574height =143>
< / embed>
< / object>
解决方案
div
中的标记,并将 background-image
应用于 div
。 CSS:
.wrapper
{
background:url(path / to / image.png);
HTML:
< div class =wrapper>
< object ..
< / div>
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>
这篇关于闪回对象的后备图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文