Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.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 Css在Internet Explorer中未正确显示_Html_Css_Internet Explorer_Firefox_Google Chrome - Fatal编程技术网

Html Css在Internet Explorer中未正确显示

Html Css在Internet Explorer中未正确显示,html,css,internet-explorer,firefox,google-chrome,Html,Css,Internet Explorer,Firefox,Google Chrome,基本上,我打算创建一个从屏幕顶部到底部的进度条。分成三部分,顶部是一种颜色,中间是另一种颜色,底部最终是另一种颜色 不幸的是,该代码仅在FF和Chrome中有效,但在IE(所有版本)中显示不正确。它目前只显示IE中的顶色 代码: HTML: 你好 您的#prgsBar是一个自动关闭标签,不应该是 将更改为您的#prgsBar是一个自动关闭标签,不应该是 将更改为您可以提供HTML代码吗?您可以提供HTML代码吗? html, body { height: 100%; margin

基本上,我打算创建一个从屏幕顶部到底部的进度条。分成三部分,顶部是一种颜色,中间是另一种颜色,底部最终是另一种颜色

不幸的是,该代码仅在FF和Chrome中有效,但在IE(所有版本)中显示不正确。它目前只显示IE中的顶色

代码:

HTML:


你好
您的#prgsBar是一个自动关闭标签,不应该是

更改为

您的#prgsBar是一个自动关闭标签,不应该是


更改为

您可以提供HTML代码吗?您可以提供HTML代码吗?
html, body 
{ 
  height: 100%; 
  margin: 10px;overflow: hidden;
} 

#head
{
  height: 80px;
  background-color:black;
}

#content
{
  min-height: 100%; 
  height: 100%; 
  margin: 0 auto; /*Allow for footer height*/
  vertical-align:bottom;
}

#prgsBar
{
  margin: 0 auto -80px; /*Allow for footer height*/
  background-color:gray;
} 

#footer, #push
{
   height: 100px; /*Push must be same height as Footer */
}
 <div id='content' style='background-color:red'>    
  <div id='head'>        
   <h5>Hello</h5>   
  </div>    
   <div id='prgsBar' style='height: 29%;'/></div>