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

How to use css target attribute

silencement
Release: 2019-05-28 11:52:40
Original
4959 people have browsed it

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;
Copy after login

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;
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template