frameset
ウィンドウの分割
<frameset></frameset>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>文書のタイトル</title>
</head>
<frameset rows="100,*,100">
<frame src="example1.html">
<frameset cols="150,*">
<frame src="example2.html">
<frame src="example3.html">
</frameset>
<frame src="example4.html">
<noframes>
<body>
<p>フレームの代替内容</p>
</body>
</noframes>
</frameset>
</html>
属性 | 説明 | 値 | 説明 |
---|---|---|---|
任意属性 | |||
rows | 横方向の分割 (各フレームの高さを指定) | 数値、%、* | ピクセル数、パーセント、相対比率 (初期値は 100%) |
cols | 縦方向の分割 (各フレームの幅を指定) | 数値、%、* | ピクセル数、パーセント、相対比率 (初期値は 100%) |
- 属性の値には、各フレームの高さ(または幅)を、カンマ( , )で区切って指定します。
- 各フレームの高さ(または幅)は、相対比率で指定することもできます。整数の後にアスタリスク( * )を付けて指定します。「*」だけで指定すると、「1*」を指定した時と同じになります。
最初の幅を100ピクセル、残りの幅を2:3で分配した例。
<frameset cols="100,2*,3*">
<frame src="example1.html">
<frame src="example2.html">
<frame src="example3.html">
</frameset>