css - 如何更改 ngBootstrap 日期选择器边框半径
问题描述
我想将 ngBoostrap 日期选择器的边界半径设置为 0。
CSS:
[_nghost-c9] {
border-radius: 0.25rem;
}
HTML:
<ngb-datepicker _ngcontent-c7="" tabindex="0" _nghost-c9="" class="ng-untouched ng-pristine ng-valid">
</ngb-datepicker>
我不想更改 ngBootstrap 的任何代码。有没有办法覆盖这个css?
解决方案
在此处尝试此示例链接
将类添加到ngb-datepicker
被调用c-datepicker
<ngb-datepicker #dp [(ngModel)]="model" (navigate)="date = $event.next" class="c-datepicker"></ngb-datepicker>
添加CSS
.c-datepicker{
border-radius:0!important;
}
推荐阅读
- regex - 带条件导出到 Excel
- bash - 检查linux客户端是否通过dhcp获取IP
- python - “如何合并唯一行名中存在的值”并添加包含其总和的行
- postgresql - Postgres 查询以在一组值中查找特定元素
- salesforce - System.TypeException:__Share 上不允许 DML 操作 INSERT
- c - 函数总是返回无意义的值
- rabbitmq - 使用 C# 从 RabbitMQ 中的队列获取单个消息的代码
- mysql - 无法通过 phpmyadmin 连接到 laradock mysql 容器
- python - 从数据库运行时创建模型
- protocol-buffers - 如何根据 protobuf grpc 规范正确格式化响应对象