将div向右展开并折叠 [英] expand and collapse a div towards right

查看:131
本文介绍了将div向右展开并折叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

i有一个用户界面我在1个父div中有3个div。

i想要折叠div2&d​​iv 3以便我可以展开div1。

我的问题是我无法将div折叠到右边。

所以我怎么能实现这个目标。



Req:当div2或div3折叠时div1到exapand。



任何建议请。

Hello ,
i have a UI where i have 3 divs inside 1 parent div .
i want to collapse the div2 & div 3 so that i can expand the div1.
My problem is i am not able to collapse the div towards the right .
so how can i achieve that .

Req: to div1 to exapand when div2 or div3 is collapsed.

Any suggestions Please.

推荐答案

查看此内容, http://codecanyon.net/item/grid-accordion/full_screen_preview / 141991?ref = 1stwebdesigner [ ^ ]



http://codecanyon.net/item/classic-accordion/full_screen_preview/140404?ref=1stwe bdesigner [ ^ ]



http://jqueryui.com/accordion/ [< a href =http://jqueryui.com/accordion/target =_ blanktitle =New Window> ^ ]
View this ,http://codecanyon.net/item/grid-accordion/full_screen_preview/141991?ref=1stwebdesigner[^]

http://codecanyon.net/item/classic-accordion/full_screen_preview/140404?ref=1stwebdesigner[^]

http://jqueryui.com/accordion/[^]


你必须使用jquery ui'的.animate - http://api.jquery.com/animate/ [ ^ ]



以下是一个示例:



http://jsfiddle.net/g3QhL/ [ ^ ]



如果这样不是你所期待的,请查看jquery ui的手风琴,但它扩展了&垂直折叠。



希望这有帮助!
You will have to use jquery ui''s .animate - http://api.jquery.com/animate/[^]

Here is a sample:

http://jsfiddle.net/g3QhL/[^]

If this is not what you are expecting, check out the jquery ui''s accordion too, but it expands & collapses vertically.

Hope this helps!


这篇关于将div向右展开并折叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆