码迷,mamicode.com
首页 > Web开发 > 详细

html base标签 target=_parent使用介绍

时间:2014-09-29 14:08:20      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   使用   ar   for   sp   div   

<base>标签为页面上的所有链接规定默认地址或默认目标。 通常情况下,浏览器会从当前文档的URL中提取相应的元素来填写相对URL中的空白。

使用<base> 标签可以改变这一点。浏览器随后将不再使用当前文档的URL,而使用指定的基本URL来解析所有的相对URL。

这其中包括 <a>、<img>、<link>、<form>标签中的 URL。引用二:target就是点击链接后跳转到的目标页。

通俗点说,就是你当前页面上的链接<a>,也包 括<img>、<link>、<form>,除非你指定了target,如<a heft="" target="_blank">链接一</a>,否则都会按照<base href="" target="_self">的规定在_self(本页面)打开。

这个base target=""还可以是top、_blank、parent或者其他frame名称。

<base href="http://afish.cnblogs.com" target="_top" />

 

html base标签 target=_parent使用介绍

标签:style   blog   http   color   使用   ar   for   sp   div   

原文地址:http://www.cnblogs.com/afish/p/3999830.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!