【发布时间】:2021-07-19 18:13:32
【问题描述】:
我在我的应用程序中使用 Bootstrap Datepicker(请参阅:https://bootstrap-datepicker.readthedocs.io/en/latest/index.html)并已将其设置为如下所示的工作。我没有代码问题,并且日期选择器按预期工作,但是,我希望更改插件的样式。除了编辑默认样式表和颜色,使活动日不再显示为默认蓝色,是否有另一种方法来自定义活动日的 CSS?我已经深入查看了文档,但似乎找不到任何有用的东西。
<head>
<link rel="stylesheet" href="/bootstrap-datepicker/css/bootstrap-datepicker.min.css">
</head>
<div class="form-group mb-0" id="bootstrap-datepicker">
<input class="form-control" type="text" data-provide="datepicker" id="startDate" name="StartDate" value="">
</div>
<script src="/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<script>
$('#bootstrap-datepicker input').datepicker({
format: "dd/mm/yyyy",
toggleActive: true,
todayBtn: "linked",
changeMonth: true,
changeYear: true
});
</script>
Boostrap Datepicker(基于上面的代码):
【问题讨论】:
标签: jquery css styles bootstrap-datepicker