<frameset>

已棄用: 不推薦使用此功能。雖可能有一些瀏覽器仍然支援它,但也許已自相關的網頁標準中移除、正準備移除、或僅為了維持相容性而保留。避免使用此功能,盡可能更新現有程式;請參考頁面底部的相容性表格來下決定。請注意:本功能可能隨時停止運作。

<frameset> HTML 元素用於包含 <frame> 元素。

備註: 由於現在不鼓勵使用頁框,而更推薦使用 <iframe>,因此現代網站通常不會使用此元素。

屬性

與所有其他 HTML 元素一樣,此元素支援全域屬性

cols 已棄用

此屬性指定頁框集中水平空間的數量和大小。

rows 已棄用

此屬性指定頁框集中垂直空間的數量和大小。

範例

頁框集文件

頁框集文件使用 <frameset> 元素而不是 <body> 元素。 <frame> 元素放置在 <frameset> 內。

html
<!doctype html>
<html lang="zh-TW">
  <head>
    <!-- Document metadata goes here -->
  </head>
  <frameset cols="50%, 50%">
    <frame
      src="https://developer.mozilla.org/zh-TW/docs/Web/HTML/Element/iframe" />
    <frame
      src="https://developer.mozilla.org/zh-TW/docs/Web/HTML/Element/frame" />
  </frameset>
</html>

如果你想要將另一個 HTML 頁面嵌入到文檔的 <body> 中,請使用 <iframe> 元素。

規範

Specification
HTML
# frameset

瀏覽器相容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
frameset
Deprecated
cols
Deprecated
rows
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Deprecated. Not for use in new websites.

參見