Should the cursor property be set in a rule with or without the :hover pseudo-class?

前端 未结 3 1956
清酒与你
清酒与你 2020-12-20 17:00

Say you, or I, have coded an HTML element...

H

...and some :hover CSS...

3条回答
  •  感动是毒
    2020-12-20 17:43

    Both ways are equally good. However i would put it on the id itself as :hover does not work on ie6 or below if element is not an anchor. If you do not care about older versions of IE. Then both ways are correct.

提交回复
热议问题