0
是這樣的:約.isotope( '重新佈局')
<div id="container" class="clickable clearfix">
<img class="element"onclick="
if($(this).hasClass('da'))
{$(this).animate({'height':'63','width':'182'}).removeClass('da')}
else
{$(this).animate({'height':'126','width':'364'}).addClass('da')}
"style="width:182px;height:63px;" src="http://www.google.com/images/logos/ps_logo2.png"/>
<img class="element"onclick="
if($(this).hasClass('da'))
{$(this).css({'height':'53','width':'215'}).removeClass('da')}
else
{$(this).css({'height':'106','width':'430'}).addClass('da')}
"style="width:215px;height:53px;" src="http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif"/>
<img class="element"onclick="
if($(this).hasClass('da'))
{$(this).animate({'height':'63','width':'182'}).removeClass('da')}
else
{$(this).animate({'height':'126','width':'364'}).addClass('da')}
"style="width:182px;height:63px;" src="http://www.google.com/images/logos/ps_logo2.png"/>
</div>
$('.element').live('click', function(){
$('#container').isotope('reLayout');
});
$('#container').isotope({
itemSelector: '.element',
masonry: { columnWidth : 1 }
});
我想用.isotope( '重新佈局')使圖像頁面。 看GOOGLE標誌使用「$(this).animate」,而JQUERY標誌使用「$(this).css」。嘗試點擊它們。問題是,GOOGLE徽標the.animate無法正常工作,點擊對面的GOOGLE,並且JQUERY thes.css正確,我該如何解決?
不,我不知道這是什麼,幫我修理這個人!請〜 – user741030 2011-05-06 15:28:20