【问题标题】:How to get the iframe seamless effect with css如何使用 css 获得 iframe 无缝效果
【发布时间】:2014-10-28 19:22:09
【问题描述】:

有了新的 html5 iframe 属性,它显示了新的选项,例如 seamless 属性,它能够:

看起来像是包含文档的一部分:

 <iframe src="demo_iframe.htm" seamless></iframe>

但目前还没有浏览器支持它。如何使用 css 获得相同的“无缝”效果?

如果不可能,我会很感激有人可以指导我使用 iframe 标记的替代方法。 js,jquery?(php现在不是我的选择)

【问题讨论】:

    标签: javascript jquery css iframe


    【解决方案1】:

    我过去使用过以下代码并取得了巨大的成功/希望它有用

    <iframe frameborder="0" allowtransparency="true" scrolling="no" src="https://www.example.com" width="680" height="900" seamless></iframe>
    

    【讨论】:

    • that looks like it is a part of the containing document: - 有了那行代码,它看起来不像是文档的一部分!
    猜你喜欢
    • 1970-01-01
    • 2013-08-29
    • 1970-01-01
    • 2012-01-14
    • 1970-01-01
    • 2021-02-24
    • 2022-11-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多