DIV与Flash对象的位置问题

时间:2011-04-04 11:08:22

标签: html css

我在将flash放在flash对象上时遇到问题... div的css是:

    background-color: red;
    border: 1px solid;
    height: 100px;
    left: 200px;
    opacity: 0.5;
    position: absolute;
    top: 234px;
    width: 100px;
    z-index: 1000;

当不透明度为1时位置正常...但是当不透明度小于1时它会产生问题然后它会在flash对象的背面显示...

  

记住flash对象的WMODE   设置为TRANSPARENT ...

任何解决方案......?

1 个答案:

答案 0 :(得分:0)

问题解决了......以下是解决方案......但首先我想提一下产生问题的代码......

<object align="" width="100%" height="200" id="charts" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
    <param value="transparent" name="wmode">
    <embed align="" width="100%" height="200" salign="TL" scale="noscale" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" swliveconnect="true" name="charts" style="background-color: rgb(230, 230, 230);" bgcolor="#E6E6E6" quality="high" src="/charts.swf?library_path=/charts_library&amp;xml_source=/chart&amp;license=">
        </object>

现在删除问题的代码......只需将 wmode 添加到emebed标记中......

<object align="" width="100%" height="200" id="charts" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="transparent" name="wmode">

    <embed align="" width="100%" height="200" salign="TL" scale="noscale" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" swliveconnect="true" name="charts" style="background-color: rgb(230, 230, 230);" bgcolor="#E6E6E6" quality="high" src="/charts.swf?library_path=/charts_library&amp;xml_source=/chart&amp;license=" wmode="transparent">
    </object>