use*_*ser 1 jquery-mobile jquery-mobile-collapsible
我在jQuery mobile 1.4.0中有一个可折叠的设置我想为这个可折叠的设置添加一个自定义动画,当它像动画这样扩展时
我使用了以下样式来为可折叠设置动画,但它没有给我相同的结果.如何将此幻灯片向下/向上动画应用到我的可扩展时?
请帮我 ..
.ui-collapsible-content {
-webkit-transition: all 1s;
-moz-transition: all 1s;
-ms-transition: all 1s;
-o-transition: all 1s;
transition: all 1s;
height: 2em;
overflow: hidden;
}
.ui-collapsible-content-collapsed {
display: block;
height: 0;
padding: 0 16px;
}
Run Code Online (Sandbox Code Playgroud)
小智 10
这是我的代码
$("[data-role='collapsible']").collapsible({
collapse: function( event, ui ) {
$(this).children().next().slideUp(150);
},
expand: function( event, ui ) {
$(this).children().next().hide();
$(this).children().next().slideDown(150);
}
});
Run Code Online (Sandbox Code Playgroud)
此代码使用jquery mobile 1.4.0进行了测试.谢谢.
| 归档时间: |
|
| 查看次数: |
1633 次 |
| 最近记录: |