【问题标题】:Is it possible to remove a table tag on a specific html location using only css是否可以仅使用 css 删除特定 html 位置上的表格标签
【发布时间】:2014-06-22 13:15:31
【问题描述】:

是否可以仅使用 CSS 删除特定 HTML 位置上的表格标签? 很遗憾,我只能访问 CSS 文件。

我想在这里删除蓝色背景上的图片(上面写着“LOUIS INVESTORS RELATIONS”):http://louis.stockwatch.com.cy/nqcontent.cfm?a_name=fstatement&lang=en

如果我可以删除包含该图像的整个表格,那就太好了。

有可能吗,怎么做?

【问题讨论】:

    标签: html css image html-table


    【解决方案1】:

    删除包含该图像的整个表格意味着删除几乎所有内容。

    如果您要删除图像所在的<td>,这是可能的,如果您假设没有其他<td> 具有将background-color 设置为#576f9c 的属性:

    http://jsfiddle.net/YY98W/

    table td[bgcolor="#576f9c"] { display: none; }
    

    【讨论】:

      【解决方案2】:

      现在用这个

      table tr:first-child td:nth-child(2) img {
      display: none;
      }
      

      【讨论】:

        猜你喜欢
        • 2014-11-01
        • 2012-06-14
        • 2018-11-02
        • 2017-09-03
        • 1970-01-01
        • 2022-06-22
        • 1970-01-01
        • 2019-07-28
        • 2017-02-15
        相关资源
        最近更新 更多