到目前为止,我已经尝试了一些方法来尝试让它工作,
到目前为止我已经尝试过:
// Media queries breakpoints
// --------------------------------------------------
// Extra small screen / phone
// Note: Deprecated @screen-xs and @screen-phone as of v3.0.1
@screen-xs: 1px;
@screen-xs-min: @screen-xs;
@screen-phone: @screen-xs-min;
// Small screen / tablet
// Note: Deprecated @screen-sm and @screen-tablet as of v3.0.1
@screen-sm: 2px;
@screen-sm-min: @screen-sm;
@screen-tablet: @screen-sm-min;
// Medium screen / desktop
// Note: Deprecated @screen-md and @screen-desktop as of v3.0.1
@screen-md: 3px;
@screen-md-min: @screen-md;
@screen-desktop: @screen-md-min;
// Large screen / wide desktop
// Note: Deprecated @screen-lg and @screen-lg-desktop as of v3.0.1
@screen-lg: 9999px;
@screen-lg-min: @screen-lg;
@screen-lg-desktop: @screen-lg-min;
我试过这个 Twitter Bootstrap Disable Responsive
将容器和主体更改为 style="min-width: 1020px"
和 style="width: 1020px"
我不确定这是否可行,但我想使用 CDNJS 来托管 Bootstrap 文件,但由于我的设计不允许这样做,因此使其无响应。
任何帮助或指导都会很棒。
谢谢
最佳答案
不幸的是,CDN 通常不打算允许开发人员托管库的修改版本。
您有几个选择:
- 使用您之前使用的相同托管版本,但根据需要在您的应用程序中使用其他样式表覆盖 CSS。
- 不要使用 CDN。您也可以为自己服务,并且有软件可以使这更易于管理。
- 使用不同的名称和 fork cdnjs 创建一个 Bootstrap 分支添加你的 fork 。请注意,除非有大量其他开发人员开始使用它,否则这可能很难被接受。
关于html - Hosted Bootstrap 3.2 使无响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24806099/