flatpickr:如何删除今天的圈子?
flatpickr: how to remove today circle?
我将 flatpickr javascript 插件用于 select 日期。现在我想删除今天的圆圈。
怎么做?
使用 js :
instance.config.onOpen.push(function() { $(".flatpickr-day.today").style.borderColor = "transparent" });
instance.config.onMonthChange.push(function() { $(".flatpickr-day.today").style.borderColor = "transparent" });
与CSS :
.flatpickr-day.today {
border-color: transparent;
}
.flatpickr-day.today:hover, .flatpickr-day.today:focus {
background: #e6e6e6;
border-color: #e6e6e6;
}
我将 flatpickr javascript 插件用于 select 日期。现在我想删除今天的圆圈。 怎么做?
使用 js :
instance.config.onOpen.push(function() { $(".flatpickr-day.today").style.borderColor = "transparent" });
instance.config.onMonthChange.push(function() { $(".flatpickr-day.today").style.borderColor = "transparent" });
与CSS :
.flatpickr-day.today {
border-color: transparent;
}
.flatpickr-day.today:hover, .flatpickr-day.today:focus {
background: #e6e6e6;
border-color: #e6e6e6;
}