Home>Article>Web Front-end> A brief introduction to the usage of CSS:hover selector

A brief introduction to the usage of CSS:hover selector

不言
不言 Original
2018-08-28 11:15:11 2533browse

This article brings you a brief introduction to the usage of CSS:hover selector. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

:Hover is a special style added when the mouse moves over the link.

Tip:The :hover selector can be used on all elements, not just links.

Tips:The :link selector sets the link style for unvisited pages, the :visited selector sets the style for visited page links, and the :active selector sets the link style when you click on it. style.

Note:In order to produce the desired effect, :hover must be located after :link and :visited in the CSS definition! !

   

Related recommendations:

CSS:hover selector_html/css_WEB-ITnose

##CSS3 selector attribute selection Device

The above is the detailed content of A brief introduction to the usage of CSS:hover selector. 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