打开链接为Windows 8

问题描述:

我有一个网页,在两帧打开链接为Windows 8

<frameset cols="140,*"> 
    <frame src="resources/nav-bar.html" id="nav-bar" frameborder=0 scrolling="no" noresize="noresize" /> 
    <frame src="resources/home.html" id="main" frameborder=0 scrolling="yes" noresize="noresize" /> 
</frameset> 
名为 导航栏框架

然后被显示我有针对性地像链接这样的:

<a href="personal_details.html" target="main">Personal details</a> 

在谷歌Chrome和Safari这个作品没有问题,但IE10的Windows 8从开始运行时,会在新的标签,而不是链接。不过,如果我从桌面运行IE10,我没有这样的问题。这怎么解决?提前致谢。

EMILIO!

这是一个可悲的小问题,显然微软知道它。 (例如,请参阅http://support.microsoft.com/kb/2793437。)更令人感到难过的是它似乎只出现在Windows 8上,在Windows 7上运行的IE10不会出现此问题。我设法通过替换我正在使用的页面的标记来解决该问题,在您的示例中使用 resources/nav-bar.html文件。我改变:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Blah blah</title> 
<link rel="stylesheet" href="./some.css" type="text/css" media="screen" /> 
</head> 
... 

<!DOCTYPE HTML> 
<html> 
<head> 
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<title>Blah blah</title> 
<link rel="stylesheet" href="./some.css" type="text/css" media="screen" /> 
</head> 
... 

搏一搏。

尝试使用属性名称。

name="main"      
+0

嗨!首先感谢你的回答。我不确定我是否应该尝试 a标记或帧标记中的媒体资源,因此我尝试了两次都未成功。但是我确实意识到:它不适用于Windows 8的Start应用程序,但在桌面IE10上运行时没有问题。我会纠正这个问题并进行编辑,以确保这些信息是清楚的。 – Emilio 2013-03-19 09:17:10

+0

我没有w8来帮助你,但我认为帧可能已被弃用。您可以尝试使用div,而不是javascript和innerHTML。我可以发表一个例子。 – 2013-03-19 20:53:31