css - 我如何覆盖 ngx carousel css 以禁用导航
问题描述
我在我的 Angular 项目中使用 ngx carousel 并想禁用导航箭头。我已经尝试过以下代码,但没有一个有效
.carousel-control {
display: none;
}
看起来我的 css 无法覆盖 ngx bootstrap css。谁能帮我这个
解决方案
尝试
::ng-deep .carousel-control {
display: none;
}
但仅供参考 ng-deep 不是一种好的做事方式,理想情况下,ngx 轮播中应该有 @Input 字段,以便您可以配置导航。
推荐阅读
- apache-kafka - Apache Kafka Streams API 与 KSQL
- android - 在主线程中使用过渡动画是应用程序可能在 android 的主线程上做太多工作的原因
- flutter-android - 如何从颤振电话身份验证中删除 reCaptcha
- laravel - 如果我没有退出,为什么 Laravel 会说我退出了?
- java - apache flink中两个以上流的联合
- xml - ANT-APACHE:在 CONCAT 操作期间,每个文件(空白)的终止行被删除了吗?
- php - 如何使用带有子数组和 json_encode 的数组来加载部分数据
- azure - Azure 应用程序自动扩展
- google-apps-script - 自动递增 ID 号 Google Apps 脚本
- java - 将空队列作为对函数的引用在移动堆栈节点后返回队列VS在函数中创建队列返回它(JAVA)