css - 无法在 VS Code 中链接我的 CSS Bootstrap 文件
解决方案
如果这是一个 angular-cli 项目,并且您想在整个项目中使用引导程序,正确的方法是通过 npm 安装它,例如:
npm install bootstrap --save
然后确保文件引用位于样式和脚本下的 angular-cli.json 文件中:
"styles": [
"../node_modules/bootstrap/scss/bootstrap.css",
....
...
"styles.css"
],
"scripts": [
"../node_modules/bootstrap/dist/js/bootstrap.bundle.js"
....
..
],
推荐阅读
- c# - 使用 closedxml 和字符代码将符号插入单元格
- node.js - LIKE 语句中查询参数导致响应慢
- hyperledger-fabric - 私有数据可以在 Hyperledger Fabric 中公开吗
- ios - 带有 UIView 转换的幻灯片动画?
- google-cloud-platform - Filebeat 负载平衡不起作用
- spring-boot - Spring Boot 集成测试 Jersey JAX-RS 资源
- html - 将段落与 FontAwesome 图标对齐
- c - 从LabVIEW数组中获取内存地址
- php - 如何覆盖两个相同的特征方法?
- python - 我如何部署电报机器人?