<frameset>

已弃用: 不再推荐使用该特性。虽然一些浏览器仍然支持它,但也许已从相关的 web 标准中移除,也许正准备移除或出于兼容性而保留。请尽量不要使用该特性,并更新现有的代码;参见本页面底部的兼容性表格以指导你作出决定。请注意,该特性随时可能无法正常工作。

概述

<frameset> 是一个用于包含 <frame> 的 HTML 元素。

备注: 现在不鼓励使用 frame,而是用<iframe>。现今的网站一般都不使用 frame。

属性

像所有其他的 HTML 元素一样,这个元素支持全局属性

cols

这个属性指定一个框架集中列的数目和尺寸。

rows

这个属性指定一个框架集中行的数目和尺寸。

例子

html
<frameset cols="50%,50%">
  <frame src="https://developer.mozilla.org/en/HTML/Element/frameset" />
  <frame src="https://developer.mozilla.org/en/HTML/Element/frame" />
</frameset>

Browser compatibility

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.

参见