Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.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 - Fatal编程技术网

Css 为什么我的站点右侧有一个额外的空间?

Css 为什么我的站点右侧有一个额外的空间?,css,Css,在我的网站上,当你缩小浏览器并向右滚动时,会显示一些额外的空间 我将背景图像设置为background1,而background2和background3没有覆盖整个宽度 这是我网站的链接:在你的背景2和pagejump2课程中,你有宽度:110%-让宽度:100%这样做应该会奏效 #background2 { background-color: #666; height: 600px; width: 100%; /* changed to 100% */ margin-right:

在我的网站上,当你缩小浏览器并向右滚动时,会显示一些额外的空间

我将背景图像设置为
background1
,而
background2
background3
没有覆盖整个宽度


这是我网站的链接:

在你的背景2和pagejump2课程中,你有
宽度:110%
-让
宽度:100%
这样做应该会奏效

#background2 {
 background-color: #666;
 height: 600px;
 width: 100%;  /* changed to 100% */
 margin-right: 0px;
 z-index: 2;
 color: #fff;
 text-align: center;
 font-family: 'Raleway', sans-serif;
 background-image: url(images/dots.png);
 background-repeat: repeat;
 min-width: 1000px;
}

#pagejump2 {
  height: 300px;
  width: 100%; /* changed to 100% */
  background-color: #98bee0;
  padding-bottom: 1px;
  background-image: url(images/dots.png);
  background-repeat: repeat;
}

这也需要为
#pagejump2
做。@davidpauljunior-是的,你是对的。我会在答案中加上这个。谢谢