Home>Article>Web Front-end> How to use css target-position attribute

How to use css target-position attribute

silencement
silencement Original
2019-05-28 11:41:34 2959browse

How to use css target-position attribute

css target-position attribute definition and usage

In css, the target-position attribute is used to specify where to place new Destination link, this attribute is only valid when the target-name attribute creates a new tab or new window. If you need to set the three attributes target-name, target-new, and target-position at the same time, you can use the target abbreviation attribute. The target attribute can define these three attributes in one statement at the same time.

css target-position attribute is a new attribute in CSS3. Currently, mainstream browsers do not support this attribute.

css target-position attribute syntax format

css syntax: target-position: above/behind/front/back

JavaScript syntax: object. style.targetPosition="front"

Attribute value description

above: Place the new destination tab/window before the current tab/window

behind: Place the new destination tab/window after the current tab/window

front: Place the new destination tab/window before all other tabs/windows

back: Place the new destination tab/window after all other tabs/windows

Instance

    css3 target-position属性笔记  

目前没有浏览器支持target-position属性!

欢迎访问php中文网

The above is the detailed content of How to use css target-position attribute. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn