1
想知道为什么当我在文字上时矩形的颜色会改变。 我想背景颜色总是和我在矩形中一样。Raphael JS背景变化
paper = new Raphael(document.getElementById('canvas_container'), 500, 250);
rectangle2 = paper.rect(130, 75, 140,40,15);
texte = paper.text(200, 90, "Tarification et souscription\nweb")
rectangle2.mouseover(function(){
this.animate({
fill : "#aaa"
});
});
rectangle2.mouseout(function(){
this.animate({
fill : "#F90"
});
});
感谢