JQuery DatePicker 删除今日类

发布于 2024-11-16 14:17:40 字数 98 浏览 6 评论 0原文

我希望 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一口甜 2024-11-23 14:17:40

如果我是你,我会保持类不变,但更改 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.

池予 2024-11-23 14:17:40

您需要在样式表中重载 .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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文