从选定的日期中删除背景 | flatpickr.js

huangapple go评论55阅读模式
英文:

Remove background from selected dates | flatpickr.js

问题

如何将 inRange 部分的背景去除?

.flatpickr-day.startRange, .flatpickr-day.endRange {
    background: #353535;
    border: 1px solid #D2D2D2;
    border-radius: 8px;
}
.flatpickr-day.inRange {
    background: #353535; /* 你想要移除的背景 */
    border: none;
    border-radius: 8px;
}
英文:

How can I remove this background from inRange items?

.flatpickr-day.startRange,.flatpickr-day.endRange {
    background: #353535;
    border: 1px solid #D2D2D2;
    border-radius: 8px;
}
.flatpickr-day.inRange {
    background: #353535;
    border: none;
    border-radius: 8px;
}

答案1

得分: 0

.flatpickr-day.inRange {
    background: #353535;
    border: none;
    border-radius: 8px;
    -webkit-box-shadow: none;
    box-shadow: none;
 }
英文:

Solution:

.flatpickr-day.inRange {
    background: #353535;
    border: none;
    border-radius: 8px;
    -webkit-box-shadow: none;
    box-shadow: none;
 }

huangapple
  • 本文由 发表于 2023年5月6日 20:24:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76188873.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定