Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.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
Css 将页脚设置为最小高度,但按下时会更高?_Css_Footer - Fatal编程技术网

Css 将页脚设置为最小高度,但按下时会更高?

Css 将页脚设置为最小高度,但按下时会更高?,css,footer,Css,Footer,我在一个网站上工作,我正在使用WordPress和一个基于Lubith的定制主题。它生成整个主题,包括CSS,但是,它没有任何选项来保持页脚在一个最小的距离下来,我需要在自己的代码。然而,我不知道怎么做。因此,我如何将页脚设置为页面下方的最小像素数,然后在到达页脚后使页脚与内容缩放 我相信这就是页脚的CSS: #footer { height: 40px; position: relative; clear: both; padding: 1px 60px 0 0

我在一个网站上工作,我正在使用WordPress和一个基于Lubith的定制主题。它生成整个主题,包括CSS,但是,它没有任何选项来保持页脚在一个最小的距离下来,我需要在自己的代码。然而,我不知道怎么做。因此,我如何将页脚设置为页面下方的最小像素数,然后在到达页脚后使页脚与内容缩放

我相信这就是页脚的CSS:

#footer {
    height: 40px;
    position: relative;
    clear: both;
    padding: 1px 60px 0 0;
    background: url(images/main-footer.gif) no-repeat center top;
}

感谢

设置您可以执行的最小高度
最小高度:40px

谢谢这修复了图像消失的问题(这是真正的问题,但页脚保证不会),但实际上不会影响页脚。可能与卢比思的制作方式有关。虽然它能工作,但要知道现在正是拨电话的时候。很高兴它能帮上忙,如果你需要,再问一次