Sticky footer doesn't reach the right and left sides of browser window

邮差的信 提交于 2019-12-12 01:37:12

问题


Continuation from CSS footer from cssstickyfooter.com not working correctly

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

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.


回答1:


Add to your code

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

to prevent spaces around your footer



来源:https://stackoverflow.com/questions/10843657/sticky-footer-doesnt-reach-the-right-and-left-sides-of-browser-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!