我的div不是100%的高度? [英] My divs are not 100% in height?
本文介绍了我的div不是100%的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果您看一下: http://wearewebstars.dk/test/index.html
左侧和内容站点(右侧)不是100%,尽管我已经将两个div的高度都设置为高度:100%
我还设置了包含div周围是100%,身体,HTML,但我不能得到这些div是100%?
有什么想法吗?
http://wearewebstars.dk/test/assets/css/ main.css
规则:
。 site-border {
border:0.625em solid#FFC99B;
最低身高:100%;
}
使用 min-height:100%; better
height:100%;
。
很好用。
If you take a look at: http://wearewebstars.dk/test/index.html The left side, and content site (right side) are not 100%, even though i've set the height on both divs to height:100% I've also set the containing divs around to be a 100%, and on body, html, but I cant get these div's to be a 100% ?
Any ideas?
解决方案
In your CSS on line 517:
http://wearewebstars.dk/test/assets/css/main.css
In rule:
.site-border {
border: 0.625em solid #FFC99B;
min-height: 100%;
}
Use instead of min-height: 100%;
better height: 100%;
.
Works well.
Picture:
http://bit.ly/1kgtcgb
这篇关于我的div不是100%的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文