在空白或被adblocker阻止时自动隐藏表格HTML?

问题描述

我正在HTML页面的HTML表中投放3x 300x250的横幅广告。当adblocker阻止横幅广告时,空白横幅具有相同的尺寸,但在浏览器或AdBlock扩展程序之间却有所不同,在某些情况下,它只是空白或显示为“被扩展程序阻止”。不显示广告时如何自动隐藏表格?

    <style>
      .demo3 {
        border:1px solid #fff;
        border-collapse:collapse;
        padding:5px;
    }
    .demo3 th {
        border:0px solid #C0C0C0;
        padding:5px;
        background:#fffff;
    }
    .demo3 td {
        border:0px solid #C0C0C0;
        text-align:center;
        padding:5px;
    }
    </style>
    </div>
    <table class="demo3" style="margin-left: auto; margin-right: auto; text-align: left;">
    <caption></caption>
    <thead>
    <tr>
    <th> <iframe src="//ads.xxxx/iframe.php?idzone=xxxxxxx&size=300x250" width="300" height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></th>
    <th> <iframe src="//ads.xxxxx/iframe.php?idzone=xxxxxxx&size=300x250" width="300" height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></th>
    <th><iframe src="//ads.xxxxx/iframe.php?idzone=xxxxxxx&size=300x250" width="300" height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></th>
    </tr>
    </thead>
    <tbody>
    <tr>
    </tr>
    </tbody>
    </table>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...