how to make div click-able?

前端 未结 9 1124
春和景丽
春和景丽 2020-12-08 07:15
shanghaimale

For div like above,when mouse on,it should become cursor:poin

9条回答
  •  生来不讨喜
    2020-12-08 07:35

    is the simplest thing that works.

    Of course in the final solution you should separate the markup from styling (css) and behavior (javascript) - read on it on a list apart for good practices on not just solving this particular problem but in markup design in general.

提交回复
热议问题