0

嗨,你如何让 div 在 mootools 中很好地淡入?

var el = $$('div.img_wrapper');

el.addEvents({
    mouseenter: function(){
        fade in div
    },
    mouseleave: function(){
        fade out div
    }
});
4

1 回答 1

0
mouseenter: function(){
  this.fade('in');
}, 

//this can't be zero or the mouseenter won't fire
mouseleave: function(){
  this.fade(.001);   
}
于 2013-01-28T02:02:29.430 回答