简体   繁体   English

调整浏览器大小时,不会显示水平滚动

[英]Horizontal scrolling doesn't show up when I resize browser

I am building out a page. 我正在构建一个页面。 I noticed that when I resize the browser to see how it looks in a smaller window, the horizontal scroll bar doesn't show up. 我注意到当我调整浏览器大小以查看它在较小窗口中的外观时,水平滚动条不会显示。

This is the only css code I have for the body: 这是我身体唯一的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;

} }

Here is a link to the page I am building out, http://taghomecaremarketing.com/test/theadamgroup/ 这是我正在构建的页面的链接, http://taghomecaremarketing.com/test/theadamgroup/

Any help is appreciated. 任何帮助表示赞赏。 Thanks. 谢谢。

In your css for container div's, remove overflow: hidden 在容器div的css中,删除overflow: hidden

#headerBox, #mainBox, #subBox, #footerBox

Surely, you will encounter some other problems, but that's the answer ... 当然,你会遇到一些其他问题,但这就是答案......

Or add overflow:auto. 或者添加overflow:auto。 or overflow:auto!important; 或溢出:auto!important;

If that does work and brings up a scroll on the x and y axis. 如果确实有效并在x轴和y轴上显示滚动。 Then best to try overflow-x:auto; 然后最好尝试overflow-x:auto;

Good luck! 祝好运!

You've set it to overflow: hidden ! 你把它设置为overflow: hidden This hides the content. 这隐藏了内容。 Change it to overflow: auto , or better still, delete it! 将其更改为overflow: auto ,或者更好,删除它!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM