Php 页脚仅重叠一页
页脚与我的一个网页重叠。所有其他页面都很好,但这一个是重叠的,我真的不想编辑/更新页脚,因为它在其他页面中工作,但我想看看是否有什么我可以做的css容器为这个页面 CSS CSS页脚/正文等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
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>