HTML5 iFrame 无缝属性 [英] HTML5 iFrame Seamless Attribute

查看:36
本文介绍了HTML5 iFrame 无缝属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 HTML5 中,iframe 具有新的属性,例如无缝",可以移除边框和滚动条.我试过了,但似乎没有用,我仍然可以看到滚动条和边框(我使用 Google Chrome 作为浏览器),这是我的代码:

in HTML5 the iframe has new attributes like 'seamless' that should remove borders and scrollbars. I've tried it but doesn't seem to work, I still can see scrollbars and borders (I'm using Google Chrome as browser), Here's my code:

<iframe seamless="seamless" title="google" width="600" height="300" src="http://www.google.co.uk"></iframe>

知道为什么它不起作用吗?

Any idea why it's not working?

还有一个问题,是否可以在 iframe 内定位页面的特定部分?

One more question, is it possible to target a specific section of the page inside the iframe?

推荐答案

尚不正确支持.

Chrome 31(可能还有更早的版本)支持该属性的某些部分,但并不完全支持.

Chrome 31 (and possibly an earlier version) supports some parts of the attribute, but it is not fully supported.

这篇关于HTML5 iFrame 无缝属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆