问题
I would like to know how can i change the styles of highlighted dates in following jquery multiple datepicker.
<input id="datePick" type="text"/>
$('#datePick').multiDatesPicker();
please check this : http://jsfiddle.net/3t4j9/
回答1:
Demo Read Here on the bottom of the page Tips
.ui-datepicker .ui-datepicker-calendar .ui-state-highlight a {
background: #743620;
color: white;
}
回答2:
.ui-datepicker .ui-datepicker-calendar .ui-state-highlight a {
background: #red none;
color: white;
}
回答3:
"ui-state-highlight" class is getting added to the element when any date is selected. we can apply styles to that particular class as shown below:
.ui-datepicker-calendar td.ui-state-highlight {
// New styles here
}
.ui-datepicker-calendar td.ui-state-highlight a {
// New styles here
}
来源:https://stackoverflow.com/questions/17916220/jquery-multiple-datepicker-selected-dates-not-highlighted-well