做项目的时候经常会遇到DIV浮动层被FLASH遮挡的,下面给出解决方案。
IE下:
<param name="wmode" value="transparent" />
FireFox和Chrome下:
<embed src="http://player.56.com/v_ODk4OTI0NjA.swf" quality="high" width="480" height="405" wmode="transparent"></embed>
完整格式:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="480" height="405">
<param name="movie" value="http://player.56.com/v_ODk4OTI0NjA.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="http://player.56.com/v_ODk4OTI0NjA.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="480" height="405" wmode="transparent"></embed>
</object>
注意插入优酷视频和插入flash的方式是一样的, 注意一些标签不可省略
【FLASH遮挡DIV浮动层解决方案兼容IE FF Chrome】相关文章:
★ css div实现的遮罩层完美兼容IE6-IE9 FireFox
★ CSS对浏览器的兼容性性处理(IE7,6与Fireofx)