Valid なフレーム
例えば以下は、Valid ですが。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>サイトタイトル</title>
</head>
<frameset rows="183,*,50" cols="*">
<frame src="header.html" name="header" id="header" scrolling="no" noresize="noresize" frameborder="0" />
<frameset cols="215,*" rows="*">
<frame src="menu_top.html" name="menu" id="menu" scrolling="auto" frameborder="0" />
<frame src="contents.html" name="content" id="content" scrolling="auto" frameborder="0" />
</frameset>
<frame src="footer.html" name="footer" id="footer" scrolling="no" noresize="noresize" frameborder="0" />
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>
CSS を駆使しようとナニしようと、どうしてもフレームとフレームの間に数ピクセルの隙間ができます。
ほんで、frameset に border="0" で隙間はなくなりますが、Validator で怒られます。
「今更フレームなんて使わないからもういいよ」だろうとは思うんですが、ただいま自分は思いっきりフレーム使ったサイトの見直しをやっています。この、Valid なフレームソースではナニをドウしたって、スキマナシフレームが出来ない、というのはずっと以前から困ってたんで、今ならドウナンヨ、と調べたら、やっぱりダメなのね、という話。
2009-05-18 18:08 | WebCreate | ichiro | permalink


Comments
コメントはまだありません