我嘗試了jQuery的這個例子:jQuery的變化背景顏色
$(document).ready(function(){
$("button").mouseover(function(){
$("p#44.test").css("background-color","yellow");
$("p#44.test").hide(1500);
$("p#44.test").show(1500);
$("p#44.test").css("background-color","red");
});
});
我預計有下面的情況發生:
1. Color of <p> to turn yellow
2. <p> to slowly fade
3. <p> to slowly show
4. Color of <p> to turn red
但這究竟發生了什麼:
1. <p> turned red
2. <p> slowly hid away
3. <p> slowly showed
這是爲什麼?
就像一個魅力! – 2017-09-25 10:11:57