小编s4t*_*tr2的帖子

替代/深/

我想更改ng bootstrap分页组件的样式并使用/deep/Angular 6应用程序中的链接.以下代码工作正常,但控制台显示警告,代码已被弃用.

那么,我应该如何更改它以摆脱警告?

这是我目前使用的CSS代码:

ngb-pagination /deep/ .page-item.disabled .page-link{
    background: none;
  }

 ngb-pagination /deep/ .page-item.active .page-link {
    background-color: #223C61;
    &:focus, &:visited{
      outline: none;
      box-shadow: none;
    }
  }
Run Code Online (Sandbox Code Playgroud)

css ng-bootstrap angular angular6

7
推荐指数
2
解决办法
7712
查看次数

Bootstrap在Angular 6应用程序中不起作用

我想在Angular 6应用程序中使用Bootstrap,这是我到目前为止所做的,但似乎没有任何工作:

1)使用npm安装bootstrap,jquery和popper.js.2)在Angular.json文件中输入以下内容

"styles": [
    "src/styles.scss",
    "node_modules/bootstrap/scss/bootstrap.scss"
],
"scripts": [
    "node_modules/jquery/dist/jquery.slim.min.js",
    "node_modules/popper.js/dist/umd/popper.min.js",
    "node_modules/bootstrap/dist/js/bootstrap.min.js"
    ...
]
Run Code Online (Sandbox Code Playgroud)

我错过了什么.这似乎没有成功.

jquery twitter-bootstrap bootstrap-4 angular angular6

3
推荐指数
2
解决办法
2289
查看次数