【发布时间】:2014-05-20 01:06:48
【问题描述】:
在建立网站的过程中,当在 chrome 中查看网页时,我页面上的 iframe 消失了。 iframe 在firefox 中仍然可见,即safari 和opera。所有浏览器都是最新的。
<body>
<div id="apDiv9" style="text-align: center; position: fixed;"><ul id="menu">
<li></li>
<li><a href="newarrivals.html" target="content">New Arrivals</a> </li>
<li><a href="yardsale.html" target="content">Yard Sale</a> </li>
<li><a href="carsale.html" target="content">Car Sales</a> </li>
<li><a href="houserental.html" target="content">House Rental</a></li>
<li><a href="hotspots.php" target="content">Hot Spots</a> </li>
<li>
<a href="events.html" target="content">Events</a> </li>
<li>
<a href="chatter.html" target="content">Chatter</a>
<li></li><iframe height="30px" width="100%" scrolling="no" frameborder="0" id="frmFile" src="marquee.html" onload="LoadFile();"></iframe>
</ul>
</li>
这是从单独的 html 文件中获取选取框的 iframe,它位于菜单下方。请帮忙。我只包含了一个 sn-p 代码。
chrome 控制台中的错误是 Uncaught ReferenceError: LoadFile is not defined
【问题讨论】:
-
这可能是因为您的 HTML 无效。您不能将 iframe 标记放在 LI 之外的列表中。
-
the iframe which sources a marqueeMarquee!?我想我们都决定在 1999 年停止使用那些。 -
@Diodeus 似乎无法解释为什么它确实有效然后突然停止,或者为什么它在所有其他浏览器中都有效。 ?? :(
-
我已经在整个页面上尝试了 iframe 在它自己的 div 中,但仍然没有,所以它似乎不是 iframe 的定位,更多 iframe 本身根本无法在 Google Chrome 中工作
标签: html google-chrome iframe compatibility