jQuery 淡入加载? [英] jQuery Fade-In OnLoad?
本文介绍了jQuery 淡入加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好吧,我只是在寻找一个简短/简单的脚本,它允许我替换 DIV 名称,以便我可以在加载后淡入淡出的页面上拥有多个 div(包括其中的图像).
Okay what I am simply looking for is a short/easy script that will allow me to replace the DIV name so that I can have multiple divs on a page fadein once loaded (including images within them).
有什么想法吗?
谢谢!
推荐答案
给 div 一个通用类(例如fade")并使用类似的代码
Give the divs a common class (e.g. "fade") and use code similar to this
$(document).ready(function(){
$(".fade").hide(0).delay(500).fadeIn(3000)
});
这篇关于jQuery 淡入加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文