Bootstrap:如何更改容器的宽度?

编程入门 行业动态 更新时间:2024-10-24 11:15:57
本文介绍了Bootstrap:如何更改容器的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我使用 Twitter Bootstrap 开发了一个带有固定容器类的网站,但现在客户希望网站的宽度为 1000 像素而不是 1170 像素.我不使用 .less 文件.

I have used Twitter Bootstrap to develop a website with the fixed container class, but now the client wants the website to be 1000px width and not 1170px. I don't use the .less files.

有没有快速解决这个问题的方法?

Is there a quick way to fix this?

推荐答案

转到 Bootstrap 站点上的 Customize 部分并选择您喜欢的尺寸.您必须设置 @gridColumnWidth@gridGutterWidth 变量.

Go to the Customize section on Bootstrap site and choose the size you prefer. You'll have to set @gridColumnWidth and @gridGutterWidth variables.

例如:@gridColumnWidth = 65px@gridGutterWidth = 20px 结果在 1000px 布局上.

For example: @gridColumnWidth = 65px and @gridGutterWidth = 20px results on a 1000px layout.

然后下载它.

这篇关于Bootstrap:如何更改容器的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-29 15:21:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1192091.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:宽度   容器   如何更改   Bootstrap

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!