如何让li
标签在鼠标悬停时单独亮起所有li
标签同时亮起
$(document).ready(function(){
$("li").mouseover(function(){
$("li").css("background-color","yellow");
});
$("li").mouseout(function(){
$("li").css("background-color","lightgray");
});
});
HTML:
<ul class="menu">
<li>Bookmarks</li>
<li>Something</li>
<li>BUMPER STICKERS</li>
<li>CARBONLESS FORMS</li>
<li>CD JACKETS</li>
<li>DIE CUT/CUSTOM STICKERS</li>
<li>DOOR HANGERS</li>
<li>ENVELOPES</li>
<li>FOLDERS</li>
<li>LETTERHEADS</li>
<li>RECTANGULAR STICKERS</li>
<li>ROUND STICKERS</li>
<li>STATIC CLING </li>
<li>TABLE TENTS</li>
<li>VINYL BANNERS</li>
<li>WINDOW STICKERS</li>
</ul>