jquery multiple datepicker selected dates not highlighted well

吃可爱长大的小学妹 提交于 2019-12-11 07:50:01

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!