JQuery DatePicker 删除今日类
我希望 JQuery DatePicker 中的今天单元格具有与所有其他可选日期相同的外观/行为。我想这就像删除 td.ui-datepicker-today 类一样。有什么建议吗?
I want the today-cell in JQuery DatePicker to have the same look/behaviour as all other selectable days. I suppose it somthing like removing the class td.ui-datepicker-today. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我想这会对你有帮助。
如何更改 jquery 日期选择器的单元格颜色
I think this will help you.
How to change the cell color of a jquery datepicker
如果我是你,我会保持类不变,但更改 css,因此它与其余部分具有相同的 css。
其他情况是:你更改了插件,但这会很糟糕,因为如果有更新的版本出现,你将不得不再次更改它。
或者,您可以取消设置该类。但是你首先要让插件设置它,然后取消设置它,这很脏
你可以轻松地用一些新的 css 扩展现有的 css,所以无论将来何时何地发生变化(你的想法或插件:))这将很容易控制。
If I were you, I would leave the class as it is, but change the css, so it is the same css as the rest.
The other scenarios are: you change the plugin, but that would be bad, because if a newer version comes out, you'll have to change it again.
OR, you CAN unset the class. But then you would first let the plugin set it, and then you unset it, which is pretty dirty
You can easilly extend the existing css with some new css, so whenever and whatever changes in the future (your mind or the plugin :) ) it will be easy to controll.
您需要在样式表中重载 .ui-state-default ui-state-highlight 类
与类内的样式 .ui-state-default
you need to over load the class .ui-state-default ui-state-highlight in your style sheet
with the style inside the class .ui-state-default