天天看点

CSS3 target 属性

在新窗口中打开所有超链接,并放置上述所有其他标签/窗口的新窗口:

a

{

target:new front;

}

CSS3 target 属性
CSS3 target 属性
CSS3 target 属性
CSS3 target 属性
CSS3 target 属性

任何主流浏览器都不支持target属性。

target属性是一个速记属性设定target-name, target-new,和target-position属性。

默认值:

current window above

继承:

no

版本:

CSS3

JavaScript 语法:

object.style.target="new front"

target: target-name target-new target-position;

描述

target-name

规定在何处打开超链接(target destination)。

target-new

规定应该在新窗口或已有窗口的新标签页中打开超链接。

target-position

规定在何处放置新的目的地链接。

<b>注意:</b> target-new 和 target-position 值只有在 target-name 值创建新标签页或新窗口中有效。