【问题标题】:Flash banner overlapping other codeFlash 横幅与其他代码重叠
【发布时间】:2012-07-28 06:12:06
【问题描述】:

当显示来自第三方的 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;
}

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

【问题讨论】:

    标签: css flash html


    【解决方案1】:

    有一个flash参数 wmode:不透明

    应该做的伎俩

    编辑

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

    【讨论】:

    • 是的,后来注意到了。但为了清楚起见,我的回答对这个问题有效。或者您要求对第三方进行修改,或者您将该 js 脚本包装在另一个函数中以添加 wmode 参数(如果可能)。
    • 也许没有那些第三方横幅的额外API?
    【解决方案2】:

    编辑:

    试试:

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

    【讨论】:

    • 我说的是屏幕中间的大横幅。
    • 查看我的编辑...顺便说一句,您的标记很混乱,请尝试修复它,否则您将在以后的更新中遇到问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-24
    • 2018-06-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多