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

Css 用单杠去掉右边多余的空白?

Css 用单杠去掉右边多余的空白?,css,alignment,padding,margin,Css,Alignment,Padding,Margin,以下是网站: 当您缩小屏幕并水平滚动时。。。你会看到我的问题,“包装器”中的所有内容都被切断,然后在右边有一大堆额外的空白。。。我很确定它在包装中,但我不确定如何让包装保持静止,在屏幕最小化时不被切断 在此问题上的任何帮助都将不胜感激。。。谢谢 您需要将正文上的最小宽度设置为页面上最大元素的宽度。在本例中,#访问为940px: body { background: none repeat scroll 0 0 #F1F1F1; min-width: 940px; /* add t

以下是网站:

当您缩小屏幕并水平滚动时。。。你会看到我的问题,“包装器”中的所有内容都被切断,然后在右边有一大堆额外的空白。。。我很确定它在包装中,但我不确定如何让包装保持静止,在屏幕最小化时不被切断


在此问题上的任何帮助都将不胜感激。。。谢谢

您需要将
正文上的
最小宽度
设置为页面上最大元素的宽度。在本例中,
#访问
为940px:

body {
    background: none repeat scroll 0 0 #F1F1F1;
    min-width: 940px; /* add this */
}

您应该尝试将波浪背景图像放在footer类中,而不是放在ul标记中。您的页脚id已设置为100%witdh,因此它应该填充页面的整个底部

#footer {
    height:275px;
    width:100%;
    margin: 0 auto;
    margin-bottom:0;
    background: #000 url(http://dropbuckets.com/wp-content/themes/Freshman%20101/images/waves.png) repeat-x 0 top; 
}

确保wave png中的白色不是透明的。

您可以发布HTML和CSS的代码吗?