Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.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 粘性页脚不';t到达浏览器窗口的左右两侧_Css_Footer_Sticky Footer - Fatal编程技术网

Css 粘性页脚不';t到达浏览器窗口的左右两侧

Css 粘性页脚不';t到达浏览器窗口的左右两侧,css,footer,sticky-footer,Css,Footer,Sticky Footer,延续自 此页脚未到达浏览器窗口的边缘: 页脚应该“接触”窗口的左右两侧,但正如您所看到的,似乎有一个小的边距。老实说,我不知道如何开始修复这个问题。但我不认为这是一个bug,因为它在Chrome、Firefox和Internet Explorer中呈现的方式是相同的。添加到您的代码中 html, body { padding: 0; margin: 0; } 要防止页脚周围出现空格,请在代码中添加空格 html, body { padding: 0; margin: 0; } 防止页脚

延续自

此页脚未到达浏览器窗口的边缘:

页脚应该“接触”窗口的左右两侧,但正如您所看到的,似乎有一个小的边距。老实说,我不知道如何开始修复这个问题。但我不认为这是一个bug,因为它在Chrome、Firefox和Internet Explorer中呈现的方式是相同的。

添加到您的代码中

html, body { padding: 0; margin: 0; } 
要防止页脚周围出现空格,请在代码中添加空格

html, body { padding: 0; margin: 0; } 
防止页脚周围出现空格