IFrame seamless 属性
示例
了解 <iframe> 是否看起来像包含文档的一部分(没有边框或滚动条)
var x = document.getElementById("myFrame").seamless;
描述
seamless 属性设置或返回一个 <iframe> 是否应该看起来像包含文档的一部分(没有边框或滚动条)。
此属性反映了 HTML seamless 属性。
浏览器支持
| 属性 | |||||
|---|---|---|---|---|---|
| seamless | 不支持 | 不支持 | 不支持 | 不支持 | 不支持 |
语法
返回 seamless 属性
iframeObject.seamless
设置 seamless 属性
iframeObject.seamless = true|false
属性值
| 值 | 描述 |
|---|---|
| true|false | 指定 iframe 是否应看起来像包含文档的一部分(没有边框或滚动条)
|
技术详情
| 返回值 | 布尔值,如果 iframe 看起来像包含文档的一部分,则返回 true,否则返回 false |
|---|
相关页面
HTML 参考: HTML <iframe> seamless 属性
❮ IFrame 对象