0

I am trying to get the height of a li, am new to mootools and using version 1.1...

My Code which have tried:-

window.addEvent('domready', function(){ 
   alert($('#slider_more li').getSize().y);
});

myMore.start(425*2); //and implement in the place of 425

Also want to know if their is a feature with mootools as height set to auto??

4

1 回答 1

1

Try $$('#slider_more li')[0].getSize().size.y.

http://jsfiddle.net/SW3tP/1/

于 2013-04-13T10:45:52.790 回答