2011-04-18 245 views

回答

0

this样本方面更好。 老实说,jQuery更加舒适和灵活选择jQuery UI Datepicker。

的jQuery UI的日期选择器是一个高度可配置的 插件,增加了 日期选择器功能添加到您的网页 。您可以自定义日期 格式和语言,限制 可选日期范围,并可轻松添加按钮和其他导航选项 。

默认情况下,日期选择器日历 在一个小覆盖打开的onfocus和 自动关闭的onblur或当选择 日期。对于内联 日历,只需将日期选择器 附加到div或跨度。

您可以使用键盘快捷键来 驱动日期选择器:

page up/down - previous/next month 
ctrl+page up/down - previous/next year 
ctrl+home - current month or open when closed 
ctrl+left/right - previous/next day 
ctrl+up/down - previous/next week 
enter - accept the selected date 
ctrl+end - close and erase the date 
escape - close the datepicker without selection