【问题标题】:Yeoman MeanJS Generator Showing Bootstrap 2 ButtonsYeoman MeanJS 生成器显示 Bootstrap 2 按钮
【发布时间】:2014-12-31 13:58:27
【问题描述】:

我刚刚第一次尝试使用Yeoman generator for MeanJS,我想知道为什么 Bootstrap 按钮像 Bootstrap 2 中那样是圆形的。我的依赖项说我已经在项目中安装了 Bootstrap 3。

{
    "name": "meanjsyoe",
    "version": "0.0.1",
    "description": "Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js",
    "dependencies": {
        "bootstrap": "~3",
        "angular": "~1.2",
        "angular-resource": "~1.2",
        "angular-mocks": "~1.2",
        "angular-bootstrap": "~0.11.0",
        "angular-ui-utils": "~0.1.1",
        "angular-ui-router": "~0.2.10"
    }
}

代码使用 Bootstrap 的标准类...

<a class="btn btn-primary btn-lg">Learn more</a>

然而,它看起来像这样......

【问题讨论】:

    标签: twitter-bootstrap twitter-bootstrap-3 yeoman bower yeoman-generator


    【解决方案1】:

    meanjs 默认包含 bootstrap-theme.css(参见 all.js / production.js)。这种样式的按钮类似于 Bootstrap 2.x。如果您不喜欢它,您可以删除包含行。

    另请参阅:How to use bootstrap-theme.css with bootstrap 3?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-22
      • 2015-01-07
      • 2015-01-15
      • 1970-01-01
      • 2015-12-29
      • 2016-07-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多