Jquery DatePicker颜色星期日红色 [英] Jquery DatePicker color Sunday red
问题描述
星期日有没有办法将颜色更改为红色星期日?星期六您可以考虑使用jquery datepicker添加类 .ui-datepicker-week-end
的事实,以便您可以添加 .ui-datepicker-week-结束{color:#f00;}
给你的css文件。
如果你想只处理星期日,你必须转达事实,在jquery datepicker生成的表中是第一列或最后一列(它是区域设置相关的)。
一般建议:使用firefox + firebug(或类似的)来检查html代码。它提供了很多想法如何完成与jQuery DOM遍历相关的任务。
Is there a way to change the color to, say red, the Sundays in a Jquery Datepicker?
For Sundays and Saturdays you can consider using fact that jquery datepicker adds class .ui-datepicker-week-end
so you can add .ui-datepicker-week-end{color:#f00;}
to you css file.
If you want to handle only Sundays you must relay on fact that this will be either first or last column in a table generated by jquery datepicker (it is locale-dependent).
General advice: use firefox+firebug(or sth similiar) to inspect html code. it gives a lot of ideas how to accomplish tasks related to jquery DOM traversing.
这篇关于Jquery DatePicker颜色星期日红色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!