そもそもなぜフレームセットを使うのですか?
答え: 上司に言われたからです。
そうは言っても、私は2つのファイルを持っています。Index.html と Head.html。
index.html の内容:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Site Title</title>
</head>
<frameset rows="122,*" FRAMEBORDER=NO FRAMESPACING=2 BORDER=0>
<frame name="t" src="head.html" scrolling="no" marginheight="0" marginwidth="0">
<frame name="b" src="http://www.website.com">
</frameset>
<noframes>
<p>You have frames turned off on your browser, please turn it on and reload this page.</p>
</noframes>
</html>
head.html の内容:
<div style="border-bottom:2px solid #000;height:120px">
<center>This is the frame head.</center>
</div>
このコードは、Internet Explorer 7 と 8 を除くすべてのブラウザーで問題なく動作します (6 は気にしません)。私が間違っていることはありますか? そうでない場合は、フレームなしで同じ効果を達成できますか?