Home>Article>Web Front-end> How to use css target-name attribute
css target-name attribute definition and usage
In css, the target-name attribute is used to specify where to open a hyperlink , 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. The target-name attribute is a new attribute in CSS3. Currently, mainstream browsers do not support this attribute.
target-name attribute syntax format
css syntax: target-name: current/root/parent/new/modal/name
JavaScript syntax :object.style.targetName="new"
Attribute value description
current: Open the hyperlink in the frame, tab or window where the link is located
root: Hyperlink in the current tab or window
parent: Open hyperlink in the parent frame. If the current frame has no parent frame, this value is treated as root
new: Create a new destination
modal: Open a new window in a new (temporarily created) modal window
name: Open the link in an existing frame, window or tab. If the name destination does not exist, create a new destination with the name
Instance
css3 target-name属性规定在何处打开超链接 目前没有浏览器支持target-name属性!
欢迎访问php中文网
Run result
Currently no browser supports the target-name attribute, and no running results are provided yet!
The above is the detailed content of How to use css target-name attribute. For more information, please follow other related articles on the PHP Chinese website!