Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第二十三题:新窗口打开链接的方法是什么?那么如何使全站链接都打开新窗口? #23

Open
Ray-56 opened this issue Sep 9, 2019 · 1 comment
Labels
HTML 超文本标记语言

Comments

@Ray-56
Copy link
Owner

Ray-56 commented Sep 9, 2019

新窗口打开链接的方法是什么?那么如何使全站链接都打开新窗口?

@Ray-56 Ray-56 added the HTML 超文本标记语言 label Sep 9, 2019
@lamelamb
Copy link

a标签的target 属性_blank ,代表新的窗口打开,可以在head 中使用base 标签规定所有a 的行为,让所有的a 标签都是 重新打开窗口。

此外 ,也可以使用全局api 来代替a 标签来打开窗口, 比如 window.open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HTML 超文本标记语言
Projects
None yet
Development

No branches or pull requests

2 participants