ng使用bootstrap

1.在项目中使用命令 npm i bootstrap -s来创建bootstrap

2.创建完成之后在 angular.json中引入进去

"styles": [
              "src/styles.scss",
              "./node_modules/bootstrap/dist/css/bootstrap.min.css",
            ],
3.重启服务

猜你喜欢

转载自www.cnblogs.com/rockyjs/p/11982156.html