并排可调整大小的 div
可能的重复:
JQuery/JQueryUI 水平分隔线
如何并排放置两个 div 并使它们一起调整大小。我想要两个 div 之间有一个可移动分隔线的效果,就像 Windows 资源管理器一样。
Possible Duplicate:
JQuery/JQueryUI hortizontal divider
How do I put two divs side by side and make them both resize together. I want the effect of a movable divider between two divs like windows explorer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
其中一个 div 必须是另一个 div 的容器。浮动内部 div 并在外部 div 上设置边距以匹配内部 div 的宽度。这将允许每个 div 的内容水平显示它需要的位置。然后将内部 div 的高度设置为 100%,以便它始终填充外部 div 上的垂直空间,并且可以在需要时拉伸它。
One of the divs must be the container for the other. Float the inner div and set a margin on the outer div to match the width of the inner. That will allow the content for each div to show where it needs to horizontally. Then set the height of the inner to 100%, so that it always fills up the vertical space on the outer div and can stretch it if needed.