【问题标题】:iframe twitter button css overflow hiddeniframe twitter 按钮 css 溢出隐藏
【发布时间】:2016-01-21 16:31:42
【问题描述】:

我需要在 React 组件中使用 iframe 版本的推文按钮(不要弄乱 React 渲染工作流程),但 在 Linux/Windows 上 - 使用 Chrome / Firefox,会出现滚动条(即使是overflow: hidden)

<iframe title="Twitter Tweet Button" style="border:0;overflow:hidden;" src="https://platform.twitter.com/widgets/tweet_button.html?count=none&amp;dnt=false&amp;lang=en&amp;size=l&amp;text=%23iframe%20Twitter%20button%20%23css%20problem%20%23overflow&amp;type=share&amp;url=http%3A%2F%2Fcodepen.io%2Ftopheman%2Fpen%2FwKyGPd&amp;via=topheman" data-reactid=".0.2.0.4" height="28px" width="76px"></iframe>

渲染工作正常:

MacOS X - Chrome / Firefox / Safari Windows - 火狐

有什么提示吗?

【问题讨论】:

    标签: css twitter


    【解决方案1】:

    放置属性:

    scrolling="no"
    

    在您的 iframe 标记中

    【讨论】:

    猜你喜欢
    • 2022-01-06
    • 1970-01-01
    • 2014-11-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-19
    • 2015-05-10
    相关资源
    最近更新 更多