Jquery ui jquery日期选择器动画选项不起作用
我有一个文本框,其中注册了jQueryUIDatePicker控件。它工作得很好,但当我尝试添加动画选项时,控件本身无法工作Jquery ui jquery日期选择器动画选项不起作用,jquery-ui,jquery-animate,Jquery Ui,Jquery Animate,我有一个文本框,其中注册了jQueryUIDatePicker控件。它工作得很好,但当我尝试添加动画选项时,控件本身无法工作 <head runat="server"> <script> $(document).ready(function() { $("#TextBox1").datepicker("option", "showAnim", 'slideDown'); }); </script> </head> &
<head runat="server">
<script>
$(document).ready(function() {
$("#TextBox1").datepicker("option", "showAnim", 'slideDown');
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</div>
</form>
</body>
$(文档).ready(函数(){
$(“#TextBox1”).datepicker(“选项”、“显示动画”、“向下滑动”);
});
如果没有这些选项,选择器至少会显示自己。有人能告诉我一个更好的解决办法吗,到底发生了什么?
谢谢 在初始化后定义选项:
// initialization (~= constructor)
$("#TextBox1").datepicker();
// set options
$("#TextBox1").datepicker("option", "showAnim", 'slideDown');
或者同时:
// initialization + options (~= constructor with args)
$("#TextBox1").datepicker({showAnim: 'slideDown'});
要调整其大小,请在jquery.ui.all.css的
之后(或在自定义.css中)将此样式添加到html文件中:
div.ui-datepicker{
字体大小:…px;
}
Wow-man!你似乎是jquery大师。谢谢!顺便说一句,我怎么知道我应该做两次绑定,一次正常,第二次与选项?这种想法永远不会打动梅斯,有没有办法降低约会挑肥拣瘦者的身材?
<style type="text/css">
div.ui-datepicker{
font-size:...px;
}
</style>