鼠标移上去给div增加一个class名:
<script type="text/javascript"> ???$(‘.elm‘).hover( ???????function() { ???????????$(this).addClass(‘hover‘) ???????}, ???????function() { ???????????$(this).removeClass(‘hover‘) ???????} ???)</script>
学习js
原文地址:https://www.cnblogs.com/shandayuan/p/9435685.html