【问题标题】:jquery multiple datepicker selected dates not highlighted welljquery多个日期选择器选择的日期没有很好地突出显示
【发布时间】:2013-07-29 04:46:06
【问题描述】:

我想知道如何在以下 jquery 多个日期选择器中更改突出显示日期的样式。

<input id="datePick" type="text"/>

$('#datePick').multiDatesPicker();

请检查:http://jsfiddle.net/3t4j9/

【问题讨论】:

标签: jquery css datepicker


【解决方案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状态 - 突出显示”类在选择任何日期时,将添加到元素中。我们可以将样式应用于该特定类,如下所示:

      .ui-datepicker-calendar td.ui-state-highlight {
      
        // New styles here
      
      }
      
      .ui-datepicker-calendar td.ui-state-highlight a {
      
       // New styles here
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2015-08-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-07-29
        • 1970-01-01
        • 2020-09-17
        相关资源
        最近更新 更多