和类选择器不同,他是有一个冒号 伪类选择器是要在一个盒子里 链接伪类选择器 实际工作中,简单写一下就行了 常用的如下 a{ font-size: 16px; color:gray; font-weight: 700; } a:hover{ font-size: 16px; color:red; font-weight: 700; } 结构(位置)伪类选择器 目标伪类选择器 :targer :targer{ color:red; }