Home > Web Front-end > Front-end Q&A > How to make css hyperlink invalid

How to make css hyperlink invalid

藏色散人
Release: 2021-06-01 10:16:23
Original
1710 people have browsed it

How to invalidate css hyperlinks: First open the corresponding css code file; then add the "pointer-events:none;cursor:default" style to the Css and apply it to the A tag.

How to make css hyperlink invalid

The operating environment of this article: Windows 7 system, CSS3 version, Dell G3 computer.

How to write CSS to invalidate the A tag (hyperlink)

Add the following style in Css and apply it to the A tag

.disableCss{ 
pointer-events:none; 
color:#afafaf; 
cursor:default 
}
Copy after login

Related introduction :

pointer-events attribute defines whether the element reacts to pointer events.

The cursor attribute specifies the type (shape) of the cursor to be displayed.

This attribute defines the cursor shape used when the mouse pointer is placed within the bounds of an element (however, CSS2.1 does not define which bounds determine this range).

Recommended learning: "css video tutorial"

The above is the detailed content of How to make css hyperlink invalid. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
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