HTML DOM IFrame 對象
IFrame 對象
IFrame 對象代表一個 HTML 的內(nèi)聯(lián)框架。
在 HTML 文檔中 <iframe> 每出現(xiàn)一次,一個 IFrame 對象就會被創(chuàng)建。
IFrame 對象的屬性
| 屬性 | 描述 |
|---|---|
| align | 根據(jù)周圍的文字排列 iframe。 |
| contentDocument | 容納框架的內(nèi)容的文檔。 |
| frameBorder | 設(shè)置或返回是否顯示 iframe 周圍的邊框。 |
| height | 設(shè)置或返回 iframe 的高度。 |
| id | 設(shè)置或返回 iframe 的 id。 |
| longDesc | 設(shè)置或返回描述 iframe 內(nèi)容的文檔的 URL。 |
| marginHeight | 設(shè)置或返回 iframe 的頂部和底部的頁空白。 |
| marginWidth | 設(shè)置或返回 iframe 的左側(cè)和右側(cè)的頁空白。 |
| name | 設(shè)置或返回 iframe 的名稱。 |
| scrolling | 設(shè)置或返回 iframe 是否可擁有滾動條。 |
| src | 設(shè)置或返回應(yīng)載入 iframe 中的文檔的 URL。 |
| width | 設(shè)置或返回 iframe 的寬度。 |