【问题标题】:Removing elements from an iframe on Soundcloud从 Soundcloud 上的 iframe 中删除元素
【发布时间】:2014-02-09 11:52:34
【问题描述】:

我正在尝试从 Soundcloud 播放器嵌入中删除 Cookie 政策。 在 Firebug 中这没问题,我只需将“display:none”添加到 .cookiePolicy 中,它就消失了。 但是,当我将其添加到我的 wordpress css 中时,什么也没有发生。

这是我从另一个帖子中找到的:

http://jsbin.com/nexup/1/edit?html,css,js,output https://stackoverflow.com/a/13497458/3289473

你能告诉我我做错了什么吗?如果有其他方法可以解决这个问题?

【问题讨论】:

标签: jquery css wordpress iframe soundcloud


【解决方案1】:

你不能删除它,但你可以把它掩盖起来。

将 iframe 放置在 div 容器中,然后使用绝对定位将图像放置在“cookie 策略”文本上。

<div style="position:relative;width:100%;height:200px;">
  <img src="tiny-image.jpg" style="position:absolute;left:0;top:180px;" />
  <iframe width="100% height="200"></iframe>
</div>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-30
    • 2011-09-20
    • 1970-01-01
    • 2011-01-04
    • 2020-03-22
    • 2013-02-14
    相关资源
    最近更新 更多