HTML DOM IFrame 對(duì)象
IFrame 對(duì)象
IFrame 對(duì)象代表一個(gè) HTML 的內(nèi)聯(lián)框架。
在 HTML 文檔中 <iframe> 每出現(xiàn)一次,一個(gè) IFrame 對(duì)象就會(huì)被創(chuàng)建。
IE: Internet Explorer, F: Firefox, O: Opera, W3C: World Wide Web Consortium (Internet 標(biāo)準(zhǔn)).
IFrame 對(duì)象的屬性
屬性 | 描述 | IE | F | O | W3C |
---|---|---|---|---|---|
align | 根據(jù)周圍的文字排列 iframe。 | 6 | 1 | 9 | Yes |
contentDocument | 容納框架的內(nèi)容的文檔。 | No | 1 | 9 | Yes |
frameBorder | 設(shè)置或返回是否顯示 iframe 周圍的邊框。 | No | 1 | 9 | Yes |
height | 設(shè)置或返回 iframe 的高度。 | 5 | 1 | 9 | Yes |
id | 設(shè)置或返回 iframe 的 id。 | 4 | 1 | 9 | Yes |
longDesc | 設(shè)置或返回描述 iframe 內(nèi)容的文檔的 URL。 | 6 | 1 | 9 | Yes |
marginHeight | 設(shè)置或返回 iframe 的頂部和底部的頁空白。 | 5 | 1 | 9 | Yes |
marginWidth | 設(shè)置或返回 iframe 的左側(cè)和右側(cè)的頁空白。 | 5 | 1 | 9 | Yes |
name | 設(shè)置或返回 iframe 的名稱。 | 5 | 1 | 9 | Yes |
scrolling | 設(shè)置或返回 iframe 是否可擁有滾動(dòng)條。 | No | 1 | No | Yes |
src | 設(shè)置或返回應(yīng)載入 iframe 中的文檔的 URL。 | 5 | 1 | 9 | Yes |
width | 設(shè)置或返回 iframe 的寬度。 | 5 | 1 | 9 | Yes |