【问题标题】:AddThis twttrhubframe blocking clicks on ie7AddThis twtthubframe 阻止点击ie7
【发布时间】:2012-09-09 05:50:12
【问题描述】:

我正在使用 Add-This 将“Tweet”和“Like”按钮添加到我的页面。

我包含的脚本如下:

http://s7.addthis.com/js/250/addthis_widget.js

它将稍微著名的#twttrhubframe 和#twttrhubframesecure iframe 添加到页面顶部的正文标记内。

在大多数浏览器上,这些 iframe 是隐藏的、最左对齐(左:-9999px)等,不会导致问题。

在 IE7 中,当我包含上述脚本时,我无法单击任何链接或选择页面上任何位置的任何文本。这表明 twttr iframe 覆盖了我的页面并阻止了我的鼠标事件。

我有以下附加样式无效:

#twttrHubFrame, #twttrHubFrameSecure  { 
    left:-100000px; 
    width:0px; 
    height:0px;
    display:none;
    visibility:hidden;
    z-index:-100;
}

如果我删除脚本(从而停止包含 iframe),所有点击都可以正常工作。

有人遇到过并解决了吗?

提前致谢。

【问题讨论】:

    标签: iframe twitter internet-explorer-7 click addthis


    【解决方案1】:

    这可能是由于 position:relative;设置在身体上。

    【讨论】:

    • 完全...我怎么错过了! ;) 谢谢。
    猜你喜欢
    • 2018-11-24
    • 1970-01-01
    • 2012-06-14
    • 1970-01-01
    • 2021-03-02
    • 1970-01-01
    • 1970-01-01
    • 2021-12-06
    • 2018-03-05
    相关资源
    最近更新 更多