iframe不会在Chrome中显示 [英] iframe not displayed in Chrome

查看:145
本文介绍了iframe不会在Chrome中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过构建网站的一半途径,当我的页面在Chrome浏览器中查看时,我的页面上的iframe已消失。 iframe在Firefox中仍然可见,即Safari和Opera。所有浏览器都是最新的。

 < body> 
< div id =apDiv9style =text-align:center; position:fixed;>< ul id =menu>
< li>< / li>
< li>< a href =newarrivals.htmltarget =content>新到货< / a> < /锂>
< li>< a href =yardsale.htmltarget =content> Yard Sale< / a> < /锂>
< li>< a href =carsale.htmltarget =content>汽车销售< / a> < /锂>
< li>< a href =houserental.htmltarget =content> House Rental< / a>< / li>
< li>< a href =hotspots.phptarget =content>热点< / a> < /锂>
< li>
< a href =events.htmltarget =content>事件< / a> < /锂>
< li>
< a href =chatter.htmltarget =content> Chatter< / a>
< li>< / li>< iframe height =30pxwidth =100%scrolling =noframeborder =0id =frmFilesrc =marquee.htmlonload = 的LoadFile(); >< / iframe中>
< / ul>
< / li>



这是iframe的来源从单独的html文件中选择一个选框,它就在菜单下。请帮忙。我只包含一段代码。


$ b

chrome控制台中的错误表示未捕获的ReferenceError:LoadFile未定义

$ b $
$ b

 < meta http-equiv =X-FRAME-OPTIONScontent =DENY> 


half way through building a website an iframe on my page has disappeared when the webpage is viewed in chrome. The iframe is still visible in firefox, ie, safari and opera. All browsers are up to date.

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

This is the iframe which sources a marquee from a seperate html file, it sits just under the menu. Please help. I have only included a snippet of code.

The error in the chrome console says Uncaught ReferenceError: LoadFile is not defined

解决方案

Just remove this line form your HTML <head> section:

<meta http-equiv="X-FRAME-OPTIONS" content="DENY">

这篇关于iframe不会在Chrome中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆