粘性页脚不会到达浏览器窗口的右侧和左侧 [英] Sticky footer doesn't reach the right and left sides of browser window

查看:85
本文介绍了粘性页脚不会到达浏览器窗口的右侧和左侧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

继续 cssstickyfooter.com的CSS页脚无法正常工作

此页脚来自 http:// www .cssstickyfooter.com / 未到达浏览器窗口的边缘:

This footer from http://www.cssstickyfooter.com/ isn't reaching the edges of the Browser's window:

页脚应该是触摸窗口的右侧和左侧,但正如你所看到的,似乎有一个小的利润。老实说,我不知道如何开始修复这个。但我不认为这是一个错误,因为它在Chrome,Firefox和我认为,即使在Internet Explorer中呈现相同的方式。

The footer should be "touching" the right and left sides of the window, but as you can see, there seems to be a small margin. Honestly, I'm not sure how to start fixing this. But I don't think it's a bug because it renders the same way in Chrome, Firefox, and I think even in Internet Explorer.

推荐答案

添加到您的代码

html, body { padding: 0; margin: 0; } 

以防止页脚周围的空格

这篇关于粘性页脚不会到达浏览器窗口的右侧和左侧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆