为什么我网站右侧有额外的空间?

时间:2013-12-12 22:41:49

标签: css

在我的网站上缩小浏览器并滚动到右侧会出现一些额外的空间。

我的背景图片设置为background1background2background3不会覆盖整个宽度。

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

1 个答案:

答案 0 :(得分:2)

在你的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;
}
相关问题