jquery学习笔记(3) Effects

本文是Learning JQuery的学习笔记

1. .css()
.css('backgroundColor')
.css('property','value')
.css({property1:'value1','property-2':'value2'})

2. hide()
show()

3. show('slow') show('normal') show('fast')
show(1234)

4. fadeIn
fadeOut
fadeTo
slideDown
slideUp

5. animate

6. 可以把效果串起来
$('div.button')
.fadeTo('slow',0.5)
.animate({left: 650}, 'slow')
.fadeTo('slow',1.0)
.slideUp('slow');

7. callback
$thisPara.next().slideDown('slow',function() {
$thisPara.slideUp('slow');
});

你可能感兴趣的:(jquery,css)