The role of the a tag pseudo-class: ":link": the state of a tag that has not been visited; ":visited": the state that a tag has been visited; ":hover": the state when the mouse is hovering over the a tag; ":active": the state of a tag when it is pressed by the mouse; When writing styles, why do you write them in this order: In fact, the essence is still "styles with equal priority, the ones written later will cover the ones in front". The pseudo-class of the a tag is just a combination of different action sequences. The triggering order of the actions determines that the order of the pseudo-classes must be written according to lvha. Let's briefly talk about these four pseudo-classes: Because the first two states are normal, and the last two are immediate. When the immediate state is triggered, it will override the normal state, so the two immediate states should be placed at the end. Because under normal circumstances: if the a tag has been visited, it should be displayed as visited, so visited should be placed after link; Because when the mouse is pressed, it is accompanied by the hovering a label, so if you want active to cover hover, you must put active at the end; Sequential memory techniques: LV package |
<<: Implementing a table scrolling carousel effect through CSS animation
>>: JavaScript Document Object Model DOM
Any number of statements can be encapsulated thro...
Today, when I was looking at the laboratory proje...
Because what I wrote before was not detailed enou...
I have been making websites for a long time, but I...
Preface As we all know, the browser's homolog...
Table of contents 1. Swap partition SWAP 1.1 Crea...
Table of contents Written in front Several storag...
In this post, we’ll use the :placeholder-shown ps...
String functions Check the ascii code value of th...
This article mainly introduces the sql script fun...
Preface Tomcat is a widely used Java web containe...
Table of contents 1. watch monitoring properties ...
1. Overview The Promise object is a specification...
As usual, today I will talk about a very practica...
The question is referenced from: https://www.zhih...