Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第727天 怎么设置才能让:active有效,让:hover无效? #3805

Open
haizhilin2013 opened this issue Apr 11, 2021 · 1 comment
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第727天 怎么设置才能让:active有效,让:hover无效?

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Apr 11, 2021
@touryung
Copy link

touryung commented Apr 13, 2021

超链接的四个伪类

  • :link
  • :visited
  • :hover
  • :active

必须按照 LoVe HAte(爱恨)原则的顺序排列,否则就会发生某个属性无效的情况

如果要让 :active 有效,:hover 无效,只需把 :link 放在 :hover 之后,:active 之前即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

2 participants