base target=”_self”标签的用法

作者: 2009-03-22,05:36 下午 周日

   书上说在模型窗口中加入<base target="_self"/>标签即可。这个属性有IE6与IE7之分。作用就是让页面的所有链接只在本窗口内打开。
注:

1、如果你是IE6,你将<base target="_self"/>加入到<head>标签里就可以了。
2、如果你是IE7,你必须将<base target="_self"/>加入到<head>的标签内位置。

代码示例:

1
2
3
4
5
6
7
<html>
     <head>
           <title>test</title>
           <base target="_self"/>
           .............
     </head>
</html>

心得:

1
<base target="可以是你框架页面的框架名"/>

暂无相关文章

分类 : CSS,JavaScript (阅览:) Tags :

评论
2010年3月22日

小女子不才 问下下呗~~ 什么叫标签内位置??

Posted by 匿名
2010年3月22日

写在和里面就可以!

Posted by 嘎嘎
留下评论


|:victory:| |:tongue:| |:titter:| |:time:| |:sweat:| |:smile:| |:shy:| |:shocked:| |:sad:| |:mad:| |:lol:| |:kiss:| |:hug:| |:huffy:| |:handshake:| |:cry:| |:call:| |:biggrin:|