Bootstrap 面板在 Angular 最新 cli 中不起作用

喜悦

我是 angular 的新手,我已经安装了最新的 angular cli。引导按钮和其他东西正在工作,但引导面板不起作用,它只显示文本。

<div class="panel panel-default">
  <div class="panel-heading">Panel Heading</div>
  <div class="panel-body">Panel Content</div>
</div>

这是 angular.json 文件

 "styles": [
              "src/styles.css", "./node_modules/bootstrap/dist/css/bootstrap.min.css",
              "./node_modules/font-awesome/css/font-awesome.css"
            ],
            "scripts": [
              "./node_modules/jquery/dist/jquery.min.js", "./node_modules/bootstrap/dist/js/bootstrap.min.js"
            ]

任何人都知道这个问题。

谢谢。

vinaykumar0459

Bootstrap 4 面板类与 Bootstrap 3 不同。如果你在 angular 中安装 bootstrap,默认情况下会出现 bootstrap 4。安装这个 npm install [email protected] --save

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章