0

当显示来自第三方的 Flash 横幅时,它们与我的代码重叠:

在此处输入图像描述

测试网址为:http ://test.otwierac.pl/ (多次刷新页面即可看到)

代码是:

<div style="width:100%">
<div id="banner">

<script>
<!--
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('<script src="http://tracking.novem.pl/rotator/CD31115/59&js=1&r='+r+'&keyword="><\/script>');
//-->
</script><div id='beacon_1' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http://test.otwierac.pl/reklamy/www/delivery/lg.php?bannerid=1&amp;campaignid=1&amp;zoneid=0&amp;loc=http%3A%2F%2Fwww.test.otwierac.pl%2F&amp;referer=http%3A%2F%2Ftest.otwierac.pl%2F&amp;cb=6d0002d6e4' width='0' height='0' alt='' style='width: 0px; height: 0px;' /></div>
</div>
</div>

CSS 代码:

#banner
{
    margin-top:10px;
    width:950px;
    margin:0 auto;
    text-align:center;
}

如何解决这个问题?横幅应居中且不与我的文字重叠。

4

2 回答 2

1

有一个flash参数wmode: opaque

应该做的伎俩

编辑

来自adobe 网站不透明- SWF 内容与页面上的其他 HTML 元素分层。SWF 文件是不透明的,并隐藏了页面上位于其后面的所有内容。与 wmode=window 或 wmode=direct 相比,此选项会降低播放性能。

于 2012-07-30T14:53:26.720 回答
0

编辑:

尝试:

#banner {
    height: 315px;
    margin-top: 10px;
    text-align: center;
    width: 950px;
}
于 2012-07-30T17:04:39.673 回答