Jquery .延迟阻止fadeIn执行
当“.delay(800)”被删除时,我似乎无法理解为什么这段脚本会像预期的那样工作……但是随着它的加入,“.delay(800)”后面的fadeIn永远不会执行。知道为什么吗 CSSJquery .延迟阻止fadeIn执行,jquery,delay,fadein,Jquery,Delay,Fadein,当“.delay(800)”被删除时,我似乎无法理解为什么这段脚本会像预期的那样工作……但是随着它的加入,“.delay(800)”后面的fadeIn永远不会执行。知道为什么吗 CSS #stepone, #steptwo, #stepthree, #stepfour, #stepfive, #finish { display:none; } jQuery脚本 $(document).ready(function(){ $("#startbutton").click(function
#stepone, #steptwo, #stepthree, #stepfour, #stepfive, #finish {
display:none;
}
jQuery脚本
$(document).ready(function(){
$("#startbutton").click(function() {
$("#stepone, #steptwo, #stepthree, #stepfour, #stepfive, #finish").fadeOut(800);
$("#start").delay(800).fadeIn(800);
});
$("#steponebutton").click(function() {
$("#start, #steptwo, #stepthree, #stepfour, #stepfive, #finish").fadeOut(800);
$("#stepone").delay(800).fadeIn(800);
});
});
如果你能在fiddle.net中重新创建它,我们就可以更容易地提供帮助:)看起来很好:你也可以发布你的html吗?当然可以;应该是这样开始的给我两分钟,我会把它整理好的!嗯,哼哼……在这里似乎工作正常: