Frameset not showing up in FireFox or IE. Fine in Chrome..?

自作多情 提交于 2019-12-11 06:31:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!