Get to know MDN better
此頁面由社群從英文翻譯而來。了解更多並加入 MDN Web Docs 社群。
已棄用: 不推薦使用此功能。雖可能有一些瀏覽器仍然支援它,但也許已自相關的網頁標準中移除、正準備移除、或僅為了維持相容性而保留。避免使用此功能,盡可能更新現有程式;請參考頁面底部的相容性表格來下決定。請注意:本功能可能隨時停止運作。
<frameset> HTML 元素用於包含 <frame> 元素。
備註:由於現在不鼓勵使用頁框,而更推薦使用 <iframe>,因此現代網站通常不會使用此元素。
與所有其他 HTML 元素一樣,此元素支援全域屬性。
cols此屬性指定頁框集中水平空間的數量和大小。
rows此屬性指定頁框集中垂直空間的數量和大小。
頁框集文件使用 <frameset> 元素而不是 <body> 元素。 <frame> 元素放置在 <frameset> 內。
如果你想要將另一個 HTML 頁面嵌入到文檔的 <body> 中,請使用 <iframe> 元素。
| HTML # frameset |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年8月6日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.