使用target =“_blank”在css [英] Use target="_blank" in css

查看:500
本文介绍了使用target =“_blank”在css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个愚蠢的问题,但我只是想和大家分享。我在Wordpress开发一个网站,我做了一些外部链接在他的顶部菜单。现在我想在新窗口中打开链接,所以有什么方法打开这个链接在新的选项卡像 target =_ blank是有任何simulator CSS属性或任何其他。

I know this is stupid question but I just thought to share with you guys. I am developing a site in Wordpress and i made some external links in his top menu. Now I want to open that links in new window so is there any way to open that links in new tab like target="_blank"is there any similer CSS property or anything else.

推荐答案

不幸的是,没有。
2013年,没有办法用纯CSS做。

Unfortunately, no. In 2013, there is no way to do it with pure CSS.

更新:感谢 showdev 链接到 CSS3超链接,是的,没有浏览器实现它。所以答案仍然有效。

Update: thanks to showdev for linking to the obsolete spec of CSS3 Hyperlinks, and yes, no browser has implemented it. So the answer still stands valid.

这篇关于使用target =“_blank”在css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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