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

How to use css target attribute

silencement
silencementOriginal
2019-05-28 11:52:404928browse

How to use css target attribute

css target attribute definition and usage

The target attribute is a shorthand attribute used to set the following attributes:

target -name

target-new

target-position

How to use css target attribute

##Syntax

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

How to use css target attribute

Note: The target-new and target-position values ​​are only valid when the target-name value creates a new tab or new window.

Example

Open all hyperlinks in new windows and place new windows above all other tabs/windows:

a
{
target:new front;
}

Browser support

Currently no browser supports target

The above is the detailed content of How to use css target 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