【发布时间】:2010-12-16 10:31:11
【问题描述】:
我有一个包含 iframe 的域,其中包含来自另一个域的内容。在这个 iframe 里面是 _top 链接。在 IE6 上,当您单击它们时,什么都不会发生。我已经准备了一个最小的例子。请用IE6去http://www.bemmu.com/static/top.html试试看。
编辑:这似乎只发生在安全级别为“高”(或者可能是自定义)的情况下,这在我全新安装的 IE 中是默认设置的
http://www.bemmu.com/static/top.html的来源:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/DTD/strict.dtd">
<html>
<body>
<iframe src="http://bemmu4.appspot.com/static/iframe.html"/>
</body>
</html>
http://bemmu4.appspot.com/static/iframe.html的来源:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/DTD/strict.dtd">
<html>
<body>
<a href="http://www.google.com" target="_top">Let's go to Google!</a>
</body>
</html>
有没有办法让这些 _top 链接正常工作?
【问题讨论】:
标签: iframe cross-browser internet-explorer-6