需要在 ie8 的新选项卡中打开链接!
我有一个侧边栏(右侧 iframe),当我单击其中的链接时,它会在 IE8 中打开一个新窗口(在 Firefox 中会打开一个新选项卡)。我需要做什么才能在新选项卡中打开 IE8 中的链接。我已经设置了“工具”->“Internet 选项”->“设置”->“Internet 选项”。 “始终在新选项卡中打开弹出窗口”和“当前窗口中的新选项卡”在新选项卡中打开,但仍然不起作用。我的链接非常简单,我缺少什么?例如:文本。还有一些网站说要注册Regsvr32 actxprxy.dll来解决这个问题,但仍然不起作用。我希望只需单击一下即可,无需“右键单击->在新选项卡中打开”选项。我也希望我不会得到“无法改变 ie8 的工作方式”的答案。 ;)
这是一个测试文件,但仍然无法使用 _blank...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<a href="http://www.google.ca" target="_blank">open in new tab</a>
</body>
</html>
这是我的 ie8 选项卡参数... alt text http://db.tt/lMhAs3
抱歉,如果都是法语,我会修复语言之后。
I have a sidebar (right sided iframe) and when i click on a link in it, it opens a new window in IE8, (in firefox it open a new tab). What do i need to do to open links in IE8 in a new tab. I already set the Tools->Internet Options->Settings-> 'Always open pop-ups in a new tab' and 'A new tab in the current window' open in new tab but still doesn't work. My links are pretty simple, what am i missing ? exemple: text. Also some site are saying to register Regsvr32 actxprxy.dll to fix this problem, still doesn't work. And i want this to work with a simple click, no 'right-click->open in new tab' option. I also hope i won't get the 'can't change how ie8 works' answer. ;)
Here is a test file, but still not working with _blank...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<a href="http://www.google.ca" target="_blank">open in new tab</a>
</body>
</html>
Here is my ie8 parameters for tabs...
alt text http://db.tt/lMhAs3
And sorry if it's all in french, i'll fix the language later.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要使用 target="_blank" 属性使链接在新窗口中打开或选项卡。链接实际打开的位置取决于浏览器设置。因此,如果您有“工具”>互联网选项>选项卡式浏览设置 >选择“始终在新选项卡中打开弹出窗口”后,将在新选项卡中打开 target="_blank" 链接。请注意,大多数浏览器默认情况下这种类型的链接将在新窗口中打开。
You need to use the target="_blank" attribute to make links open in a new window or tab. Where the link actually opens is up to the browser settings. So if you have Tools > Internet Options > Tabbed Browsing Settings > "Always open pop-ups in new tabs" selected, a target="_blank" link will open in a new tab. Note that this type of link will open in a new window by default on most browsers.
您的设置看起来正确,只需松开 html 中的“Target”属性
目标属性定义链接文档的打开位置。
Your settings look right, just loose the "Target" attribute in the html
The target attribute defines where the linked document will be opened.
简单观察一下,IE(所有版本)不会打开具有无效 ULR 地址的链接。例如缺少斜杠 (http:/domain.ext)。它也适用于其他浏览器。
Just a short observation, IE (all versions) will not open a link with invalid ULR address. For example a missing slash (http:/domain.ext). It will work on other browsers tho.