html里面,没有内容,要高度占满页面

 html
{
 height:100%;
 margin:0;
}
body{
     100%;
    height: 100%;
    background-color: rgb(52,175,245);
 
}

百分比是根据父元素的,所以要将html也100%

原文地址:https://www.cnblogs.com/chenlw/p/9259509.html