Add target=“_blank” in CSS

前端 未结 6 1890
闹比i
闹比i 2020-11-28 07:57

I have external links in top menu of my website. I want to open these links in new tab. I could achieve it using \"target=_blank\" in HTML. Is there a similar CSS p

6条回答
  •  余生分开走
    2020-11-28 08:33

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


    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.

提交回复
热议问题