【问题标题】:How to change the bootstrap css width into 1000px? [closed]如何将引导 css 宽度更改为 1000px? [关闭]
【发布时间】:2013-07-15 23:02:29
【问题描述】:

在引导容器宽度固定在 1170px,我想转换 容器宽度变为1000。所以,请任何人都可以回答我并告诉我程序。

【问题讨论】:

  • 自己尝试一下吗?

标签: jquery html css twitter-bootstrap


【解决方案1】:

您可以简单地为该 div 指定 style="width:1000px;"

【讨论】:

    【解决方案2】:

    CSS 覆盖:

    body .container {
        width: 100%; !important;
    }
    

    或固定宽度:

    body .container {
        width: 1000px; !important;
    }
    

    但如果您使用bootstrap-responsive,您将失去响应性,因此您还需要在 CSS 声明中进行配置。

    【讨论】:

      【解决方案3】:

      最好的方法是在你的 html header 中在 bootstrap-responsive 之后添加另一个 css 文件,规则如下:

      body .container {
          width: 1000px; !important;
      }
      

      你想要覆盖的彼此引导样式

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-08-21
        • 1970-01-01
        • 1970-01-01
        • 2019-06-28
        • 2020-10-25
        • 1970-01-01
        • 2016-10-03
        相关资源
        最近更新 更多