问题
For some reason, this very basic page shows up fine in Chrome, but not FireFox or IE. I've never really needed to use Frames before, but they seem simple enough. Is there a problem with using a single frame within a frameset? I am trying to replace an iFrame with this single frame.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
</head>
<body>
<frameset cols="*">
<frame id="aqFrameSlider" src="http://www.alphacommunications.com/alphaquote/index.php?account=J2001&hash=GISDFGSP43HAJ49FH92JSPKJ">
</frameset>
</body>
</html>
回答1:
Remove <body>
and close <frame>
properly:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
</head>
<frameset cols="*">
<frame id="aqFrameSlider" src="http://www.alphacommunications.com/alphaquote/index.php?account=J2001&hash=GISP43HAJ49FH92JSPKJ"></frame>
</frameset>
</html>
The next time, you should validate your document first, that would notice this error.
来源:https://stackoverflow.com/questions/3678205/frameset-not-showing-up-in-firefox-or-ie-fine-in-chrome