Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为 datepicker 使用了以下主题,我需要自定义颜色更改。当我选择一个新的日期时,我需要改变颜色。
示例:需要自定义颜色的 25 Oct,因为它已经被选中。
谢谢
尝试将这些 css 添加到您的页面,因为ui-state-active它是您选择的日期的样式,并且ui-state-highlight是它用来识别当前日期的样式。
ui-state-active
ui-state-highlight
#ui-datepicker-div .ui-state-active {color: #FFFFCC;} #ui-datepicker-div .ui-state-highlight {color: #DCDCDC;}