设计 jQuery UI 日期选择器日历的日栏样式

发布于 2024-12-22 13:12:55 字数 68 浏览 6 评论 0原文

如何为 jQuery UI 日期选择器日历的日期栏提供颜色背景?用我自己的自定义CSS?或者使用主题滚轮?有人这样做过吗?

How to give color background to the day bar of jQuery UI date-picker calendar? with my own custom css? or using the theme roller? has anyone done this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

亢潮 2024-12-29 13:12:55

这是表头 ui-datepicker 的样子:

<thead>
<tr>
<th class="ui-datepicker-week-end"><span title="Sunday">Su</span></th><th><span title="Monday">Mo</span></th><th><span title="Tuesday">Tu</span></th><th><span title="Wednesday">We</span></th><th><span title="Thursday">Th</span></th><th><span title="Friday">Fr</span></th><th class="ui-datepicker-week-end"><span title="Saturday">Sa</span></th>
</tr>
</thead>

This is how the table header ui-datepicker looks like:

<thead>
<tr>
<th class="ui-datepicker-week-end"><span title="Sunday">Su</span></th><th><span title="Monday">Mo</span></th><th><span title="Tuesday">Tu</span></th><th><span title="Wednesday">We</span></th><th><span title="Thursday">Th</span></th><th><span title="Friday">Fr</span></th><th class="ui-datepicker-week-end"><span title="Saturday">Sa</span></th>
</tr>
</thead>
多情出卖 2024-12-29 13:12:55

虽然没有与之关联的类,但您可以使用选择器 table.ui-datepicker-calendar thead tr:first-child 来完成工作。

这是一个 fiddle 作为示例。

While there isn't a class associated with it, you can use the selector table.ui-datepicker-calendar thead tr:first-child which should get the job done.

Here's a fiddle as an example.

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