框架集未显示在 FireFox 或 IE 中。在 Chrome 中没问题..?

发布于 2024-09-18 19:50:43 字数 557 浏览 1 评论 0原文

由于某种原因,这个非常基本的页面在 Chrome 中显示正常,但在 FireFox 或 IE 中显示不正常。我以前从未真正需要使用框架,但它们看起来很简单。在框架集中使用单个框架有问题吗?我正在尝试用这个单一框架替换 iFrame。

<!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>

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>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

意犹 2024-09-25 19:50:44

正确删除 并关闭

<!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>

下次,您应该 首先验证您的文档,这会注意到此错误。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文