【发布时间】:2012-11-13 21:19:23
【问题描述】:
我有这个 html
<div class = "theListItem" data-role="collapsible-set" data-collapsed="false">
<div data-role="collapsible" data-collapsed="false" data-theme="a">
<h3>$11.48 - 10/31/2012 - Duane Reade #14410 - Brooklyn Ny</h3>
<div data-role="controlgroup" data-type="horizontal">
<a class= "green" href="categorize.html" data-transition="slide" data-role="button">Yes</a>
<a class="red" href="#" data-role="button">No</a>
<a class= "blue" href="IDontKnow.html" data-transition="slide" data-role="button">I don't know</a>
</div>
</div>
点击时它会折叠内容。我想给它添加一个动画让它慢慢打开?我假设我使用 .animate ?
我试过了:
$('document').ready(function(){
$('.theListItem').click(function(){
$('.controlgroup').animate({height: 100%,), 500};
});
});
【问题讨论】:
-
$('document').ready(function(){ $('.theListItem').click(function(){ $('.controlgroup').animate({height: 100% ,), 500} }); });
标签: jquery html jquery-mobile jquery-animate collapsable