gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 09:08:12 27 4
gpt4 key购买 nike

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

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com