2013-12-13 73 views

回答

0

使用jQuery ..

$('.button').on('click',function(e) { 
     $('#yourdiv').css('width','yourwidth'); 
    }); 
+0

不適合我。 http://fiddle.jshell.net/9UV8x/ –

+1

你包括jquery然後它會工作看到這個http://fiddle.jshell.net/9UV8x/1/ –

0

試試這個

$(window).load(function(){ 
    $("#button").click(function() { 
     $("#slider").animate({ 
     width: '360px' 
     }, 1000); 
    }); 
}); 

DEMO

+0

工程偉大的小提琴,但我無法得到它在我的服務器上工作。 http://uswebpros.net/examples/mobile/test.php –

+0

我檢查你的網站它的作品good.accept作爲答案,如果有幫助 –