Home > Q&A > body text
css3中的 :hover只能应用于a标签不能用于其它标签吗(比如p或li之类的标签)?
怪我咯2017-04-17 11:37:07
is available for all tags, but some browsers do not support it.
大家讲道理2017-04-17 11:37:07
All tags are OK
PHPz2017-04-17 11:37:07
Use hover for non-A tags, ie8-not supported...
PHP中文网2017-04-17 11:37:07
Both are OK, there are compatibility issues, you can use it during testing, but you will need to switch to JS in the future
Who told you: hover is in css3? css:hover selector
Home
Course
Q&A
My