只显示特定月份在datepicker中的日期 [英] Only display days of specific month in datepicker
问题描述
例如让我们说月份 JUNE ,这里是几个月的可能以及几个月的日子 JULY 显示,但我希望只显示几天的 JUNE
。我该怎么做?我正在尝试,但没有结果来了。
这是小提琴:
您可以通过添加以下方式使其他月份值不可见:
.datepicker .otherMonth {
能见度:隐藏;
}
到你的CSS。请参阅更新小提琴。
I have a date picker and it is displaying a date. But the problem is each month is showing some days of previous month and also some days of next month which I don't want to be displayed. I want that each month should display days of that particular month.
For example let's say Month JUNE, here some days of month MAY and also some days of month JULY are displayed, but i want that only days of JUNE
should be displayed. How can I do it? I am trying but no result is coming.
Here is the fiddle:
You can make the other month values invisible by adding:
.datepicker .otherMonth {
visibility: hidden;
}
to your CSS. See the updated fiddle.
这篇关于只显示特定月份在datepicker中的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!