$(".bstar1").mouseenter(function(e){$('.bstar1').prop('src','images/star.png');});就是指標(biāo)在哪裡,黃星星就會(huì)補(bǔ)滿bstar是灰的star是黃的我越寫越不對(duì),這樣好像不通?怎麼寫才對(duì)?_____________________________更新我寫這樣$('.rate_bstar').hover(function(){$(this).prevAll().prop('src','images/star.png');$(this).prop('src','images/star.png');$(this).nextAll().prop('src','images/bstar.png');},function(){$(this).prevAll().prop('src','images/bstar.png');$(this).prop('src','images/bstar.png');$(this).nextAll().prop('src','images/bstar.png');});發(fā)現(xiàn)這樣可以,但我點(diǎn)擊後我想讓他停在那個(gè)狀態(tài),不要消失
星星評(píng)價(jià)怎麼做?
一只斗牛犬
2019-05-23 11:34:53