境界線の幅を指定する

[新着] Webテンプレートを仮オープンしました


<frameset border="">

ブラウザ
Internet Explorer Netscape Firefox Opera
タイプ
(独自拡張)

framesetタグborder="" を追加すると、境界線の幅を指定できます。


<frameset cols="200,*" border="5">


border="" 境界線の幅をピクセル数で指定します

0 を指定すると、境界線を消すことができます。

frameborder属性では境界線の表示・非表示を指定するだけですが、このborder属性では任意の幅を指定できます。

メモ

境界線を消してしまうと、ブラウザによってはその境界線を動かせなくなってしまいます。


使用例

borderに50を指定する場合

<html>
<head>
<title>フレームサンプル</title>
</head>

<frameset cols="200,*" border="50">
<frame src="example_a.html">
<frame src="example_d.html">

<noframes>
<body>
<p>ここにフレーム未対応ブラウザ向けの内容</p>
</body>
</noframes>


</frameset>

</html>

これをブラウザで見ると次のように表示されます


borderに0を指定する場合

<html>
<head>
<title>フレームサンプル</title>
</head>

<frameset cols="200,*" border="0">
<frame src="example_a.html">
<frame src="example_d.html">

<noframes>
<body>
<p>ここにフレーム未対応ブラウザ向けの内容</p>
</body>
</noframes>


</frameset>

</html>

これをブラウザで見ると次のように表示されます



[特集] レンタルサーバー比較 & サーバー選びのチェックポイント

サイト内検索について - ベーシック版