使组合高度等于浏览器窗口的高度 [英] making combined height equal to the height of the browser window
本文介绍了使组合高度等于浏览器窗口的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
http://featuredfotografer.com/
.Codemirror div与#header div结合使用的高度要高于浏览器的高度。我怎样才能让它们的浏览器窗口的组合高度达到100%,所以我没有滚动条?
The .Codemirror div in combination with the #header div takes up more height than the height of the browser. How can I make them have a combined height of 100% of the browser window so I have no scrollbar?
推荐答案
使组合高度等于浏览器窗口的高度。
making combined height equal to the height of the browser window
只需添加此代码段即可。它会将您的内容设置为 100%
的浏览器窗口。
Just add this snippet of code. It will set your content to 100%
of browser window.
body,html {
height: 100%;
}
您也可以查看这个。
这篇关于使组合高度等于浏览器窗口的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文