css - 如何覆盖样式 angular-bootstrap-datepicker - "ng-datepicker"

标签 css

ng-datepicker 的问题,我认为很简单,但我无法解决。

例如:

<input style="background: red;" type="text" data-ng-datepicker data-ng-options="datepickerOptions" data-ng-model="date">

风格忽略了理解这一点,因为在浏览器中我得到了这样的东西:

<input style="background: red;" type="text" data-ng-datepicker data-ng-options="datepickerOptions" data-ng-model="date">
<input type="text"></input>

我试过:

ng-style, ng-class

没有结果。

最佳答案

添加解析

    <input id="datepicker" style="background: red;" type="text" data-ng-datepicker data-ng-options="datepickerOptions" data-ng-model="date">

在自定义 css 中我们可以这样写:

    input #datepicker[type="text"]{color: red;}

关于css - 如何覆盖样式 angular-bootstrap-datepicker - "ng-datepicker",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23949074/

相关文章:

javascript - 将表数据输入值克隆到整行 onclick 按钮

google-chrome - Chrome 中的 CSS3 box-shadows 非常慢

javascript - 歌剧错误 : Uncaught exception: TypeError: Cannot convert 'xxxxxx' to object

html - 多个全尺寸背景图像

css - 为什么我们在 CSS 属性之前使用 (#)?

css - 相对选择器的 Less & analog

CSS 更改 <path> 的 d 属性

javascript - 取决于列表项文本长度的 CSS 类

html - 使用 Go 服务器时 MIme 类型不正确

css - Microsoft Edge 上的自定义光标具有偏移量