fallback image for flash object

戏子无情 提交于 2020-01-10 05:24:27

问题


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>

回答1:


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>


来源:https://stackoverflow.com/questions/5801615/fallback-image-for-flash-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!