Home  >  Q&A  >  body text

css3中的 :hover只能应用于a标签不能用于其它标签吗(比如div或li之类的标签)

css3中的 :hover只能应用于a标签不能用于其它标签吗(比如p或li之类的标签)?

PHPzPHPz2765 days ago1018

reply all(5)I'll reply

  • 怪我咯

    怪我咯2017-04-17 11:37:07

    is available for all tags, but some browsers do not support it.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:37:07

    All tags are OK

    reply
    0
  • PHPz

    PHPz2017-04-17 11:37:07

    Use hover for non-A tags, ie8-not supported...

    reply
    0
  • PHP中文网

    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

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:37:07

    Who told you: hover is in css3? css:hover selector

    reply
    0
  • Cancelreply