Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html angular项目中的Bootstrap赢得';我不能正常工作_Html_Angular_Bootstrap 4 - Fatal编程技术网

Html angular项目中的Bootstrap赢得';我不能正常工作

Html angular项目中的Bootstrap赢得';我不能正常工作,html,angular,bootstrap-4,Html,Angular,Bootstrap 4,我正在尝试在我的angular项目中使用引导导航栏。我是这样安装的: 在cli中安装bootstrap+jquery: npm install bootstrap jquery --save angular cli.json: "styles": [ "../node_modules/bootstrap/dist/css/bootstrap.min.css", "styles.css" ], "scripts": [ "../node_modules/jq

我正在尝试在我的angular项目中使用引导导航栏。我是这样安装的:

在cli中安装bootstrap+jquery:

npm install bootstrap jquery --save

angular cli.json

  "styles": [
    "../node_modules/bootstrap/dist/css/bootstrap.min.css",
    "styles.css"
  ],
  "scripts": [
    "../node_modules/jquery/dist/jquery.min.js",
    "../node_modules/bootstrap/dist/js/bootstrap.min.js"
  ],
这是我的html:


找到了它

我使用的是Bootstrap3类,导入的是Bootstrap4类。愚蠢的错误


很抱歉给您添麻烦。

“不行”。。。什么不起作用?我知道为什么在大多数情况下,但这是纯粹的安装引导,不会工作。。。但是如果你想要的话…更新它。你有代码+我的输出是什么,我期望是什么。你尝试过css和js文件的非精简版本吗?@GopakumarGopalan我只是尝试过,但没有区别。。。