flash对象的后备图像

时间:2011-04-27 09:00:53

标签: flash object fallback

如果我想要一张图片来显示是否无法加载此闪光灯,我该怎么做?

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

1 个答案:

答案 0 :(得分:6)

您可以将object标记包含在div中,并将background-image应用于div

CSS:

.wrapper
{
    background: url(path/to/image.png);
}

HTML:

<div class="wrapper">
    <object..
</div>