如何更改jQuery DatePicker控件的弹出位置 [英] How to change the pop-up position of the jQuery DatePicker control

查看:133
本文介绍了如何更改jQuery DatePicker控件的弹出位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

知道如何让DatePicker出现在相关文本框的末尾而不是直接位于其下方吗?容易发生的是文本框朝向页面底部,DatePicker向上移动以占用它并完全覆盖文本框。如果用户想要输入日期而不是选择日期,则他们不能。我宁愿让它出现在文本框之后,所以它如何垂直调整无关紧要。

Any idea how to get the DatePicker to appear at the end of the associated text box instead of directly below it? What tends to happen is that the text box is towards the bottom of the page and the DatePicker shifts up to account for it and totally covers the text box. If the user wants to type the date instead of pick it, they can't. I'd rather have it appear just after the text box so it doesn't matter how it adjusts vertically.

任何想法如何控制定位?我没有看到小部件的任何设置,我没有运气调整CSS设置,但我很容易丢失一些东西。

Any idea how to control the positioning? I didn't see any settings for the widget, and I haven't had any luck tweaking the CSS settings, but I could easily be missing something.

推荐答案

这个问题的接受答案实际上不适用于jQuery UI Datepicker。要更改jQuery UI Datepicker的位置,只需在css文件中修改.ui-datepicker即可。也可以通过这种方式更改Datepicker的大小,只需调整字体大小。

The accepted answer for this question is actually not for the jQuery UI Datepicker. To change the position of the jQuery UI Datepicker just modify .ui-datepicker in the css file. The size of the Datepicker can also be changed in this way, just adjust the font size.

这篇关于如何更改jQuery DatePicker控件的弹出位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆