IFrame seamless 属性
实例
查看<iframe> 是否看起来像是包含文档的一部分(无边框或滚动条):
var x = document.getElementById("myFrame").seamless;定义和用法
无缝属性设置或返回<iframe> 是否应该看起来像是包含文档的一部分(没有边框或滚动条)。
此属性反映 HTML 无缝属性。
浏览器支持
| 属性 | |||||
|---|---|---|---|---|---|
| seamless | 不支持 | 不支持 | 不支持 | 不支持 | 不支持 |
语法
返回 seamless 属性:
iframeObject.seamless
设置 seamless 属性:
iframeObject.seamless = true|false
属性值
| 值 | 描述 |
|---|---|
| true|false | 指定 iframe 是否应该看起来像是包含文档的一部分(无边框或滚动条)
|
技术细节
| 返回值: | 一个布尔值,如果 iframe 看起来像是包含文档的一部分,则返回 true,否则返回 false |
|---|
