新的 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/