博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Make body have 100% of the browser height
阅读量:6856 次
发布时间:2019-06-26

本文共 445 字,大约阅读时间需要 1 分钟。

Try setting the height of the html element to 100% as well.

html, body{    height: 100%;}

Body looks to its parent (HTML) for how to scale the dynamic property, so the HTML element needs to have it's height set as well.

However the content of body will probably need to change dynamically. Setting min-height to 100% will accomplish this goal.

html{  height: 100%;}body {  min-height: 100%;}

 

from:

转载于:https://www.cnblogs.com/SFAN/p/3670290.html

你可能感兴趣的文章
Springboot + swagger2 通过实体对象封装形式上传视频或者图片问题解决
查看>>
Confluence 5 中如何快速创建一个 JIRA Ticket
查看>>
TP5搭建虚拟主机详细步骤
查看>>
高通骁龙 675 发布:首发第四代 Kryo CPU,2019 年 Q1 商用
查看>>
为什么我们做分布式使用Redis?
查看>>
【4opencv】求解向量和轮廓的交点
查看>>
一次邮件发送协议SMTP问题排查
查看>>
Confluence 6 数据库表-系统信息(System information)
查看>>
BugkuCTF 文件上传测试
查看>>
leaflet加载视频图层
查看>>
统治世界的十大算法
查看>>
安装工具
查看>>
关于C#中Partial局部类型关键字的使用
查看>>
Python学习记录(某些特性)
查看>>
【一课专栏】解构ODL引子 - ODL入坑之路·上篇
查看>>
接任马云:创造者张勇和他所改变的阿里巴巴
查看>>
快速上手wepy,制作简易签名板
查看>>
服务器报错-初始化检测硬盘异常
查看>>
PAT甲级题解目录 [会逐步更新完整]
查看>>
携程Java实习二面
查看>>