【发布时间】:2011-05-16 01:13:47
【问题描述】:
我正在用这个例子尝试 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
这是为什么呢?
【问题讨论】:
标签: jquery