您的位置:首页 > 其它

base标签的属性target用法

2009-04-07 21:59 260 查看
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <meta http-equiv="Content-Language" content="zh-cn" />

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

 <body>

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

  <p>
   <a href="http://www.w3school.com.cn">这个连接</a> 也将在原窗口中加载,target属性为"_self"。
  </p>

 </body>
</html>

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: