CSS skills: 5) jquery hover(over,out)

     
$(":div[name=div_edit]").each(function() { $(this).hover(function() { $(this).find(">div:first-child").hide(); $(this).find(">div:last-child").show(); }, function() { $(this).find(">div:first-child").show(); $(this).find(">div:last-child").hide(); }); });
原文地址:https://www.cnblogs.com/feika/p/4504364.html