使机身达到浏览器高度的100%我想让身体有100%的浏览器高度。我可以用CSS做这个吗?我试着设置height: 100%但它不起作用。我想设置一个页面的背景色来填充整个浏览器窗口,但是如果页面的内容很少,我会在底部看到一个难看的白条。
3 回答

ITMISS
TA贡献1871条经验 获得超8个赞
html, body { height: 100%;}
html { height: 100%;}body { min-height: 100%;}
- 3 回答
- 0 关注
- 444 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消