如何使div的浏览器窗口高度为100%

别来无恙 提交于 2020-04-06 18:36:28

问题:

I have a layout with two columns - a left div and a right div . 我有两列的布局-左div和右div

The right div has a grey background-color , and I need it to expand vertically depending on the height of the user's browser window. 右边的div具有灰色background-color ,我需要根据用户浏览器窗口的高度将其垂直扩展。 Right now the background-color ends at the last piece of content in that div . 现在, background-color在该div中的最后一条内容处结束。

I've tried height:100% , min-height:100%; 我已经尝试过height:100%min-height:100%; , etc.


解决方案:

参考一: https://stackoom.com/question/6blV/如何使div的浏览器窗口高度为
参考二: https://oldbug.net/q/6blV/How-to-make-a-div-100-height-of-the-browser-window
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!