1
A
回答
0
随着目前的细节,我会说你需要查找'虚拟专栏'的解决方案。下面是几个环节来回答这个问题
4 Methods For Creating Equal Height Columns In CSS
Responsive full height (equal height) columns using the faux columns css technique
Stackoverflow - Full height faux columns
,以及如果你能过去更多的HTML/CSS的,我们可以看看
+0
赞恩,谢谢你,但我结束了咨询我的一些老CSS笔记,并与填充/保证金1000em招去了。现在一切都很好,谢谢! – redshift
0
你可以模拟一个表格:
<html>
<style>
html {
display: table;
width: 100%;
min-height: 100%;
}
body {
display: table-row;
}
.sidebar {
width: 250px;
display: table-cell;
vertical-align: top;
min-height: 100%;
}
.sidebar + .content {
display: table-cell;
vertical-align: top;
min-height: 100%;
}
</style>
<body>
<div class="sidebar">a</div>
<div class="content">b</div>
</body>
</html>
相关问题
- 1. 页脚不会一直延伸到页面的右边缘
- 2. 如何将我的侧边栏延伸至页面的整个高度?
- 3. 如何将我的侧边栏连接到我的页脚?
- 4. 侧边栏不垂直拉伸
- 5. 我的侧边栏是在页脚
- 6. 如何将菜单栏延伸至页边空白处?
- 7. 将边框延伸到页面末尾
- 8. 如何让我的菜单栏居中并一直延伸?
- 9. 如何让侧边栏自动伸展
- 10. 延伸到我的页脚部分
- 11. 浮动侧边栏运行到页脚
- 12. 如何制作延伸至页面长度的侧栏?
- 13. 如何将侧边栏移动到页面的右侧?
- 14. Bootstrap固定页眉和页脚具有可折叠侧边栏
- 15. Flexbox的页眉页脚侧边栏
- 16. 在粘性页脚上,如何使div边界延伸到页尾到页尾?
- 17. 获取左边栏背景,以便一直向左延伸
- 18. 如何关闭侧边栏菜单? (Bootstrap)
- 19. 让左栏一直延伸下去
- 20. Div延伸页脚
- 21. 在codeigniter的页脚 - 侧边栏MVC
- 22. 导航栏不会延伸到网页的边缘
- 23. CSS HTML如何使侧边栏高度连接到页脚
- 24. Bootstrap导航栏中的白色右侧和左侧页边距
- 25. Bootstrap折叠侧边栏不隐藏到一边
- 26. 防止滚动侧边栏与页脚
- 27. wp页脚出现在侧边栏
- 28. 将div一直延伸到页面底部
- 29. 固定侧边栏在到达页脚时应该有边距
- 30. 如何伸展并一直延伸网格到父保证金
你'我page'链接返回404 – chakrit