This time I will bring you the CSS pseudo- class selector, what are the precautions of the CSS pseudo-class selector, the following is a practical case, Let’s take a look.
a.random:hover{ color:#64FFDA; font-size:120%; } //选择的是class="random"的<a>标签。 a#search:active{ font-size:80%; } //选择的是id="search"的<a>标签。
I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!
Related reading:
What are the differences between inline elements and block-level elements in html
How to use image to submit form
How to set the border and transparency style of Div
What is the difference between html, xhtml and xml
The above is the detailed content of CSS pseudo-class selector. For more information, please follow other related articles on the PHP Chinese website!