Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/298.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.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
Php 页脚仅重叠一页_Php_Html_Css - Fatal编程技术网

Php 页脚仅重叠一页

Php 页脚仅重叠一页,php,html,css,Php,Html,Css,页脚与我的一个网页重叠。所有其他页面都很好,但这一个是重叠的,我真的不想编辑/更新页脚,因为它在其他页面中工作,但我想看看是否有什么我可以做的css容器为这个页面 CSS CSS页脚/正文等 html, body { margin:0 auto; padding: 0; max-width: 960px; height: 100%; background-color: white; } #container { min-height:100%; position:re

页脚与我的一个网页重叠。所有其他页面都很好,但这一个是重叠的,我真的不想编辑/更新页脚,因为它在其他页面中工作,但我想看看是否有什么我可以做的css容器为这个页面

CSS

CSS页脚/正文等

html,
body {
  margin:0 auto;
  padding: 0;
  max-width: 960px;
  height: 100%;
  background-color: white;
}
#container {
  min-height:100%;
  position:relative;
}
#header {
  background:white;
  padding:10px;
}
#body {
  padding:10px;
  padding-bottom:40px;   /* Height of the footer */
}
#footer {
  position: absolute;
  bottom:0;
  left: 0;
  right: 0;
  height:40px;   /* Height of the footer */
  background:#EBEBEB;
  border-radius: 5px;
}
PHP/HTML

for($temp = 1; $temp <= $cArray[2]; $temp++)
{
  $img .= "<div class='boxChildLeft'>
            <div class='img'>
              <img src='../ProductImages/$cArray[0].jpg' width='100px' height='100px'>
            </div>
            <div class='prodInfo'>
                  <p1>$pName</p1><br>
                  <span id='sp'><p1>$pPrice<p1>
                  </span>
            </div>
         </div>";
}

对于($temp=1;$temp您提供的信息还不够,我建议您使用W3school HTML。它将指出您的HTML实现中缺少的内容,它将通过提供建议来帮助您。

对于当前的信息,您不能提供一些页脚代码吗?
for($temp = 1; $temp <= $cArray[2]; $temp++)
{
  $img .= "<div class='boxChildLeft'>
            <div class='img'>
              <img src='../ProductImages/$cArray[0].jpg' width='100px' height='100px'>
            </div>
            <div class='prodInfo'>
                  <p1>$pName</p1><br>
                  <span id='sp'><p1>$pPrice<p1>
                  </span>
            </div>
         </div>";
}
<div id="box">
    <?php echo $img;?>
</div>