【问题标题】:Follow Button of Twitter cross-browserTwitter跨浏览器关注按钮
【发布时间】:2018-04-20 10:40:56
【问题描述】:

我想在我的平均堆栈网页上添加 Twitter 的关注按钮。我使用以下代码:

https://jsbin.com/herikik/3/edit?html,output

  <iframe
    src="https://platform.twitter.com/widgets/follow_button.html?screen_name=Google&show_screen_name=false&show_count=false&size=l"
    title="Follow us on Twitter"
    width="80"
    height="30"
    style="border: 0; overflow: hidden;"></iframe>

在 Mac 下的 Chrome 中运行良好。但是在Windows下的Chrome和Edge中却显示:

有谁知道如何修改代码以使其能很好地跨浏览器显示?

【问题讨论】:

  • 尝试将scrolling="no" 添加到&lt;iframe&gt;。

标签: css iframe twitter cross-browser


【解决方案1】:

尝试将scrolling="no" 添加到&lt;iframe&gt;。

<iframe
    src="https://platform.twitter.com/widgets/follow_button.html?screen_name=Google&show_screen_name=false&show_count=false&size=l"
    title="Follow us on Twitter"
    width="80"
    height="30"
    style="border: 0; overflow: hidden;"
    scrolling="no">
</iframe>

【讨论】:

    猜你喜欢
    • 2013-01-25
    • 2014-11-06
    • 1970-01-01
    • 2013-07-20
    • 1970-01-01
    • 2013-04-25
    相关资源
    最近更新 更多