javascript - 如何用css得到iframe无缝效果

标签 javascript jquery css iframe

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

An that looks like it is a part of the containing document:

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

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

如果不可能,我将不胜感激,如果有人可以指导我使用 iframe 标记的替代方法。 js, jquery?(php 现在不适合我)

最佳答案

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

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

关于javascript - 如何用css得到iframe无缝效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26606995/

相关文章:

javascript - Immutable.js List() 和 List.of() 之间的区别?

javascript - 在 jQuery hideIntent 上设置间隔

html - 使用Bootstrap/CSS做pinterest风格布局,帖子不会落在上面帖子的正下方

javascript - 源代码未完全执行。 (JS)

javascript - 单击链接时的确认框

javascript - 如何将 .getJSON 转换为 .ajax

javascript - 如何使用 filepond 插件、ajax 和 php,在服务器上未检测到文件名

javascript - 正确的 JSONP 响应

安卓屏幕尺寸兼容性 : Bitmap?

internet-explorer-9 - ie10, border-radius, overflow, position 和 hidden position :fixed child