CSS 设置 Twitter Bootstrap 页面的最小宽度

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15183379/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 21:52:01  来源:igfitidea点击:

Set minimum width for Twitter Bootstrap page

csstwitter-bootstrapwidth

提问by Ya Basha

I have searched a lot (here and on the net) about setting the minimum display width for a Twitter Bootstrap page. I want to set the minimum display to 360px so the layout wouldn't change. I tried setting the min-width in the CSS code:

我已经搜索了很多(这里和网上)关于设置 Twitter Bootstrap 页面的最小显示宽度。我想将最小显示设置为 360px,这样布局就不会改变。我尝试在 CSS 代码中设置最小宽度:

html, body {
  min-width: 360px;
}

But no luck.

但没有运气。

Please advise.

请指教。

采纳答案by Bernie

This page seems to answer your question: Min width in window resizing

此页面似乎回答了您的问题: 窗口大小调整中的最小宽度

As far as I can tell, the thing you were missing was setting the width to auto.

据我所知,您缺少的是将宽度设置为自动。