Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 在Edge/Internet Explorer/Firefox中,身高不是100%_Html_Css - Fatal编程技术网

Html 在Edge/Internet Explorer/Firefox中,身高不是100%

Html 在Edge/Internet Explorer/Firefox中,身高不是100%,html,css,Html,Css,我已经找到了这个线程(),但在我的例子中,我就是找不到解决方案 如果你在chrome中查看页面,一切都很好,但是IE和Edge中的html与屏幕分辨率一样大 您可以在现场查看问题,问题由解决 html,body { height: 100vh;} 感谢阿披实 将html{height:100%;}更改为html{min height:100%;}现在所有浏览器中的html高度都是100%,但是主体高度不能给出视口高度(vh)高度:100VH尽管此代码可能有助于解决此问题,提供关于为什么和/或如

我已经找到了这个线程(),但在我的例子中,我就是找不到解决方案

如果你在chrome中查看页面,一切都很好,但是IE和Edge中的html与屏幕分辨率一样大

您可以在现场查看问题,问题由解决

html,body { height: 100vh;}

感谢阿披实

html{height:100%;}
更改为
html{min height:100%;}
现在所有浏览器中的html高度都是100%,但是主体高度不能给出视口高度(vh)高度:100VH尽管此代码可能有助于解决此问题,提供关于为什么和/或如何回答该问题的额外背景将显著提高其长期价值。请在回答中添加解释,包括适用的限制和假设。
//Use THis 
  html,body{
  width:100%;
  height:100%;
  margin:0px;
  padding:0px;

 }