【问题标题】:iFrame embedded on page is not clickable in any页面上嵌入的 iFrame 在任何页面中都不可点击
【发布时间】:2020-11-14 09:02:28
【问题描述】:

我有一个页面https://www.visitmontaione.com/wp4/en/montaione-tuscany-italy/services/,其中嵌入了一个 iframe,但它不可点击。

我不明白为什么。也许有一些脚本会阻止点击元素的任何可能性。

有人可以帮助我吗?非常感谢

菲利波

【问题讨论】:

    标签: html css iframe hover click


    【解决方案1】:

    此框架具有规则pointer-events: none - 这禁止使用选择器进行任何操作。您需要为此规则分配一个unset 参数,例如 - pointer-events: unset

    使用嚎叫的 css (style.css) 找到对 iframe 标记的引用(246 行),并添加 pointer-events: unset!important。你应该是这样的:

    iframe {
        border: 0;
        width: 100%;
        max-width: 100%;
        vertical-align: bottom;
    
        pointer-events: unset!important; /*add this it*/
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-18
      • 1970-01-01
      • 1970-01-01
      • 2015-06-24
      • 2010-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多