Home >Web Front-end >Front-end Q&A >How to make css hyperlink invalid
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.
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 }
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!