阅读背景:

如何使用 base 标签使页面中的所有标签在新窗口中打开

来源:互联网 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />

<base target="_blank" />
</head>

<body>

<p>
<a href="/go.html?url=https://www.w3school.com.cn" target="_blank">这个连接</a> 将在新窗口中加载,因为 target 属性被设置为 "_blank"。
</p>

<p>
<a href="/go.html?url=https://www.w3school.com.cn">这个连接</a> 也将在新窗口中加载,即使没有 target 属性。
</p>

</body>
</html><html>
<head>
<meta http-equiv="Content-Type" c



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: