トップ>やさしいHTML教室トップ>メニュー>インラインフレームの細かい設定 次へ(背景色を指定する)
frameboeder="0か1"インラインフレームの枠を表示するかしないかを指定できます。scrolling="yesかnoかauto"これは、スクロールバーを表示するかを指定するもので、yesにすると強制的に表示し、noにすると表示しない、autoにすると表示するページが枠に入りきるときは表示せず、入りきらないときは表示します。marginwidth="インラインフレームの枠と内容の左右の間隔"
marginwidth属性とmarginheight属性で、インラインフレームの枠と内容の間隔を指定することが出来ます。
| ||||
プレビュー | HTMLソース | |||
---|---|---|---|---|
|
<iframe src="i.html" frameborder="1"></iframe> <iframe src="i.html" frameborder="0"></iframe> <iframe src="i.html" scrolling="yes"></iframe> <iframe src="i.html" scrolling="no"></iframe> <iframe src="i.html" scrolling="auto"></iframe> <iframe src="i.html" marginwidth="0"marginheight="0"></iframe> <iframe src="i.html" marginwidth="30"marginheight="30"></iframe> |
トップ>やさしいHTML教室トップ>メニュー>インラインフレームの細かい設定 次へ(背景色を指定する)