Css min-width no horizontal scroll bar is showing

血红的双手。 提交于 2019-12-13 13:22:57

问题


i've built a site and I used min-width css

.body{
    overflow:auto;
    min-width:1600px;
}

but when It loads on smaller resolution it don't appear a horizontal scrollbar, what should I do to make horizontal scrollbar appear?


回答1:


You do not need to declare overflow if you want the scroll bar to be present as this is the default behaviour

DEMO http://jsfiddle.net/kevinPHPkevin/kav7G/5/

You do need to set a height otherwise it will not work



来源:https://stackoverflow.com/questions/18855961/css-min-width-no-horizontal-scroll-bar-is-showing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!