CSS3 target-name 属性
本文导语: CSS3target-name属性实例在新窗口中打开所有超链接:a{target-name:new;}浏览器支持任何主流浏览器都不支持target-name属性。CSS3target-name属性定义及使用说明target-name属性指定要打开的超链接(目标位置)。默认值...
在新窗口中打开所有超链接:
a
{
target-name:new;
}





任何主流浏览器都不支持target-name属性。
CSS3 target-name 属性定义及使用说明
target-name属性指定要打开的超链接(目标位置)。
语法
target-name: current|root|parent|new|modal|name;
值 | 描述 |
---|
current | 在链接所在的框架、标签页或窗口中打开超链接。 |
root | 在当前标签页或窗口中超链接。 |
parent | 在父框架中打开超链接。如果当前框架没有父框架,则将该值视作 root。 |
new | 创建新的目的地(参阅 target-new)。 |
modal | 在新的(暂时创建的)模态窗口中打开新窗口。 |
name | 在已有框架、窗口或标签页中打开链接。 如果 name 目的地不存在,则用该名称创建新的目的地。 |