一键切换两个divs百分比宽度 [英] Toggle two divs percentage width with one button
本文介绍了一键切换两个divs百分比宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用一个按钮切换两个div的宽度,如下所示: http://www.ulrichshusen.de
i want to toggle the width of two divs with one button as seen on: http://www.ulrichshusen.de
显示左侧区域时,顶部菜单缩小. 而且它会在未显示左侧区域的情况下扩展.
The menu on top shrinks while the left area is shown. And it expands while the left area isn't shown.
我该如何使用jquery做到这一点?
How can i accomplish this with jquery?
推荐答案
实际上,顶部导航和您单击以切换左侧部分的按钮之间没有任何联系.该按钮仅控制左侧区域.我做了一些工作让您理解.请点击以下链接:
Actually there was no connection between top nav and the button you click to toggle left section. The button only controls left section. I did some work for you to understand. Follow the link below:
http://jsfiddle.net/sanman/LveSp/
这篇关于一键切换两个divs百分比宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文