Html-frameset-tag
提供:Dev Guides
HTML-<frameset>タグ
説明
HTML <frameset>タグは、ウィンドウをフレームに分割するために使用されます。 このタグはHTML5でサポートされていません
例
<!DOCTYPE html>
<html>
<head>
<title>HTML frameset Tag</title>
</head>
<frameset cols = "200, *">
<frame src = "/html/menu" name = "menu_page"/>
<frame src = "/html/main" name = "main_page"/>
<noframes>
<body>
Your browser does not support frames.
</body>
</noframes>
</frameset>
</html>
これにより、次の結果が生成されます。以下の画像を参照してください。 左のフレームはメニューで、右のフレームはメインです-
特定の属性
HTML <frameset>タグは、次の追加属性もサポートしています-
Attribute | Value | Description |
---|---|---|
cols | column size | Specifies the number of columns and their width in either pixels, percentages, or relative lengths. Default is 100% |
rows | row size | Specifies the number of rows and their height in either pixels, percentages, or relative lengths. Default is 100%. |
ブラウザのサポート
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |