Yeoman MeanJS发电机显示Bootstrap 2按钮

时间:2014-11-04 15:42:57

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

我第一次尝试使用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>

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

enter image description here

1 个答案:

答案 0 :(得分:0)

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

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