Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        6年前关闭。
                                                                                            
                
        
在我的网站上,当您缩小浏览器并滚动到右侧时,会显示一些额外的空间。

我将背景图像设置为background1,并且background2background3不能覆盖整个宽度。

这是指向我的网站的链接:http://www.iupui.edu/~streamit/N315/paigwhit/projectFiles/index2.html

最佳答案

在您的background2和pagejump2类上,您具有width: 110%-使该width: 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;
}

10-08 18:23