Home > Web Front-end > HTML Tutorial > CSS pseudo-class selector

CSS pseudo-class selector

php中世界最好的语言
Release: 2018-02-23 10:03:39
Original
2741 people have browsed it

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>标签。
Copy after login

CSS pseudo-class selector

CSS pseudo-class selector

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:

Iframe parameters

What are the differences between inline elements and block-level elements in html

How to use the base tag

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!

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