开发者

No horizontal scroll bar for min width of page

开发者 https://www.devze.com 2023-03-17 02:28 出处:网络
Website: ht开发者_StackOverflowtp://www.animefushigi.com Make your browser window skinny, note that there is no horizontal scroll bar, there should be one if your browser window is skinnier than 1024

Website: ht开发者_StackOverflowtp://www.animefushigi.com

Make your browser window skinny, note that there is no horizontal scroll bar, there should be one if your browser window is skinnier than 1024 px width.

<div id="master_wrapper"><div id="outer_wrapper">
   ..
</div></div>

#master_wrapper {
    overflow:hidden;
    margin:0 auto;
}
#outer_wrapper {
    overflow:hidden;
    margin-top:87px
}


The reason you don't get a scrollbar is because you have overflow: hidden on the outer two divs. Unfortunately, removing the overflow: hiddens will cause problems. Instead, add:

body {
    min-width: 1024px
}

That will force a scrollbar.

0

精彩评论

暂无评论...
验证码 换一张
取 消