Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.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
Html 水平滚动不';当我调整浏览器大小时不会显示_Html_Css - Fatal编程技术网

Html 水平滚动不';当我调整浏览器大小时不会显示

Html 水平滚动不';当我调整浏览器大小时不会显示,html,css,Html,Css,我正在写一页。我注意到,当我调整浏览器的大小以查看它在较小窗口中的外观时,水平滚动条不会显示出来 这是我为主体提供的唯一css代码: body { font-family:Helvetica, Arial, sans-serif; margin:0; background-image:url(img/paper-footerbg.png); background-attachment:scroll; background-repeat:repeat-x repeat-y; } 这是我正在构建的

我正在写一页。我注意到,当我调整浏览器的大小以查看它在较小窗口中的外观时,水平滚动条不会显示出来

这是我为主体提供的唯一css代码:

body {
font-family:Helvetica, Arial, sans-serif;
margin:0;
background-image:url(img/paper-footerbg.png);
background-attachment:scroll;
background-repeat:repeat-x repeat-y;
}

这是我正在构建的页面的链接


感谢您的帮助。谢谢。

在容器div的css中,删除溢出:隐藏的

#主机箱#主箱#子箱#页脚箱


当然,您会遇到一些其他问题,但这就是答案…

或添加溢出:自动。或溢出:自动!重要的

如果这样做有效,将在x轴和y轴上显示一个滚动条。然后最好尝试溢出-x:auto


祝你好运

您已将其设置为
溢出:隐藏
!这会隐藏内容。将其更改为
溢出:自动
,或者最好将其删除

使用溢出的缺点是什么?当我有浮动div时,我通常将其用于我的容器div,有时它会显示我的内容超出了容器。因此,我使用overflow:hidden来避免使用其他问题,这意味着我的内容将超出容器?这就是为什么我一直在使用溢出:隐藏,我确实忘记了使用可见或自动更好,但下面有人建议我删除溢出周期。使用它有什么缺点?感谢您花时间提供帮助。您可以从这些文章中学习有关清除浮动和不同技术的知识。我希望这会有所帮助,我宁愿使用这个,而不是使用clear:both、left或right,但我希望看到关于为什么应该删除它的答案。感谢您抽出时间回答!