gpt4 book ai didi

jquery-ui - 如何在 jQuery 日期选择器中显示 nextText/prevText?

转载 作者:行者123 更新时间:2023-12-02 02:17:20 25 4
gpt4 key购买 nike

根据documentation for nextText :

The text to display for the next month link. This attribute is one of the regionalisation attributes. With the standard ThemeRoller styling, this value is replaced by an icon.

那么,禁用此替换的正确方法是什么?

有点像

$(".ui-datepicker-header > .ui-icon").removeClass("ui-icon")

显然不起作用,因为它在实际创建元素之前运行。

最佳答案

您可以覆盖样式而不是尝试删除它们:

.ui-widget-content .ui-icon {
background-image: none;
}

这是一个例子:

http://jsfiddle.net/54cgQ/1/

2014 年 10 月 9 日 使用较新版本的 jquery、jquery ui 更新示例:

http://jsfiddle.net/54cgQ/46/

关于jquery-ui - 如何在 jQuery 日期选择器中显示 nextText/prevText?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9885263/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com