ID选择器( # ) > class选择器( . ) > 标签选择器(标签名)

组合选择器:选择器与选择器之间用  逗号 隔开。例如:h1,h2,h3,p{font-size:14px;color:red}

伪元素选择器:a:link(正常连接的样式)    a:link{color:red;}

   a:hover(鼠标放上去的样式)   a:hover{color:green;}

   a:active(选择链接时的样式)    a:active{color:yellow;}

   a:visited(已经访问过的链接的样式)  a:vixited{color:blue;}


CSS选择器及其优先级

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-12-13
  • 2021-05-31
  • 2022-03-06
  • 2021-07-17
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2021-06-17
  • 2021-06-18
  • 2022-12-23
相关资源
相似解决方案