css - 覆盖 ng-bootstrap datepicker select.style
问题描述
我正在使用 ng-bootstrap datepicker 并且在选择样式月份和年份时遇到问题
问题出在选择风格上。
select[_ngcontent-c21] {
-ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 0 .5rem; // the problem in this line
在 HTML 中,我有这样的:
我认为解决这个问题的方法是让padding 0.0rem
但我不能覆盖这种风格。
解决方案
您只需在要覆盖的样式值之后添加 !important 即可覆盖每个引导程序样式。
示例引导样式覆盖:
.signup-form .btn:hover, .signup-form .btn:focus {
background: #179b81 !important;
}
在你的情况下尝试:
select[_ngcontent-c21] {
-ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 0 rem !important;
}
推荐阅读
- airflow - 在 Airflow 中实现分支
- php - 如何自动为 /storage/ 文件夹中的所有文件设置标题?
- marklogic - 如何在 MarkLogic Grove 中从我自己的 API 调用后端 MarkLogic API?
- python - deg 在 np.polyfit numpy 中做了什么
- excel - 如果条件不匹配,则给出下拉列表
- java - 如何从 4,000,000,000 个号码中获得最常见的 100 个号码?
- c# - 为 POST 和 PUT 请求获取有效负载为空
- c++ - 为什么添加 hlsl/fx 文件后 Visual Studio 无法找到我的 main 函数?
- javascript - 如何从 Admin Directory 中获取 Employee Title?
- php - 通过nodejs或者php访问这个地址被阿里云屏蔽了,如何在nodejs或者php中访问这个链接的正确返回值?