两个div具有相同的高度 [英] Two div with the same height
本文介绍了两个div具有相同的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
经过一个小时的研究,我仍然困扰着我的问题。
after one hour of research i'm still stuck with my problem.
我想在左边做一个固定宽度和可变高度的菜单。
和右侧的其他div有一个可变的宽度和高度。
I want to make one menu on the left with a fixed width and variable height. And an other div on the right with a variable width and height.
我想给这两个div相同的高度。
And I want to give the same height to these two div.
这里是:代码HTML / CSS
推荐答案
我终于找到了解决方案。
使用一些css表的东西(显示:table-row,display:table-cell等)。
By using some css table stuff (display:table-row, display: table-cell etc).
这篇关于两个div具有相同的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文