Angular6+ngx-bootstrap的使用(一)

在angular中bootstrap不太好用,推荐使用angular自带的ngx-bootstrap

一.安装

npm install ngx-bootstrap - save

二.引入样式
需要在index.html中引入bootstrap的样式
引入bootstrap3

<link href = “https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel = ”stylesheet“ >

引入bootstrap4

<link href = “https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel = ”stylesheet“ >

猜你喜欢

转载自blog.csdn.net/qq_43225030/article/details/84578752