Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.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 在页面底部保留页脚DIV_Css_Html_Footer_Sticky Footer - Fatal编程技术网

Css 在页面底部保留页脚DIV

Css 在页面底部保留页脚DIV,css,html,footer,sticky-footer,Css,Html,Footer,Sticky Footer,我正在开发一个响应性强的网站,我试图在页面底部放置一个DIV,而不管所使用的浏览器窗口的宽度如何。我试过“粘页脚”方法”http://ryanfait.com/sticky-footer/“但它要求您定义页脚的高度,并且页脚的高度会随着浏览器宽度的调整而改变 在不必定义页脚高度的情况下,还有其他方法可以使用吗?这就是您需要的吗 #footer { position: fixed: bottom: 0; left: 0; } 这就是你需要的吗 #footer { position: fixed:

我正在开发一个响应性强的网站,我试图在页面底部放置一个DIV,而不管所使用的浏览器窗口的宽度如何。我试过“粘页脚”方法”http://ryanfait.com/sticky-footer/“但它要求您定义页脚的高度,并且页脚的高度会随着浏览器宽度的调整而改变

在不必定义页脚高度的情况下,还有其他方法可以使用吗?

这就是您需要的吗

#footer { position: fixed: bottom: 0; left: 0; }
这就是你需要的吗

#footer { position: fixed: bottom: 0; left: 0; }

将高度更改为最小高度。应该有用

将高度更改为最小高度。应该有用