问题
I need a JavaScript script or a jQuery plugin that lets me resize two divs accordingly by dragging a horizontal "divider" (well, it divides horizontal, but the divider line is vertical). Better leave a picture here:
_______________________
| | |
| | |
| | |
| <-- | --> |
| | |
| | |
| | |
|___________|___________|
回答1:
I have used jQuery Splitter Plugin. Works quite well.
来源:https://stackoverflow.com/questions/10810850/what-is-a-lightweight-script-jquery-extension-that-implements-a-draggable-divide