本文介绍了镀铬中的ajax日历扩展器位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我在我的应用程序中使用ajax calendar extender控件。代码如下, < asp:TextBox ID = txtDateOfBirth runat = server ClientIDMode = 静态 onchange = validate(this.id); > < / asp:TextBox > < ajax:CalendarExtender ID = CEDateOfBirth runat = server TargetControlID = txtDateOfBirth 格式= MM / dd / yyyy PopupPosition = BottomRight SkinID = calebdar ClientIDMode = 静态 > < / ajax:CalendarExtender > < ajax:TextBoxWatermarkExtender ID = WaterMarkDateOfBirth runat = server TargetControlID = txtDateOfBirth WatermarkText = 出生日期* > < / ajax:TextBoxWatermarkExtender > < asp:RequiredFieldValidator ID = rfv_DateOfBirth runat = server ControlToValidate = txtDateOfBirth ForeColor = Red ValidationGroup = 添加 resourcekey = rfv_DateOfBirth ErrorMessage = 请选择出生日期。 ClientIDMode = 静态> * < / asp:RequiredFieldValidator > < asp:RegularExpressionValidator ID = re_DateOfBirth ValidationGroup = 添加 runat = server resourcekey = re_DateOfBirth ForeColor = Red ControlToValidate = txtDateOfBirth ValidationExpression = ^([0] \d | [1] [0-2])\ /([0-2] \ d | [3] [0-1])\ /([2 ] [01] | [1] [6-9])\d {2}(\s([0-1] \d | [2] [0-3])(\:[O- 5] \d){1,2})?$ ClientIDMode = 静态 ErrorMessage = 请输入有效的出生日期。> * < / asp:RegularExpressionValidator > 日历在IE中工作正常。但是在chrome中,日历的位置会上升。 我在google上搜索并找到了一些解决方案,例如使用div并在div中放置日历和文本框。添加样式到div。 还可以通过jquery代码将高度和宽度应用于日历弹出窗口。 但这对我不起作用。 请注意,它位于dotnetnuke 任何帮助将不胜感激。 :)解决方案 ClientIDMode = Static ErrorMessage = 请输入有效的出生日期。> * < / asp:RegularExpressionValidator > 日历在IE中运行良好。但在Chrome中,日历的位置变为我在bogle上搜索了一些解决方案,比如使用div,并在div中放置日历和文本框。为div添加样式。 起来。 还可以通过jquery代码将高度和宽度应用于日历弹出窗口。 但它对我不起作用。 请注意它在dotnetnuke 任何帮助将是appr eciated。 :) I am using ajax calendar extender control in my application. Code is as follows,<asp:TextBox ID="txtDateOfBirth" runat="server" ClientIDMode="Static" onchange="validate(this.id);"></asp:TextBox> <ajax:CalendarExtender ID="CEDateOfBirth" runat="server" TargetControlID="txtDateOfBirth" Format="MM/dd/yyyy" PopupPosition="BottomRight" SkinID="calebdar" ClientIDMode="Static"> </ajax:CalendarExtender> <ajax:TextBoxWatermarkExtender ID="WaterMarkDateOfBirth" runat="server" TargetControlID="txtDateOfBirth" WatermarkText="Date Of Birth *"> </ajax:TextBoxWatermarkExtender> <asp:RequiredFieldValidator ID="rfv_DateOfBirth" runat="server" ControlToValidate="txtDateOfBirth" ForeColor="Red" ValidationGroup="Add" resourcekey="rfv_DateOfBirth" ErrorMessage="Please select Date of Birth." ClientIDMode="Static" >*</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="re_DateOfBirth" ValidationGroup="Add" runat="server" resourcekey="re_DateOfBirth" ForeColor="Red" ControlToValidate="txtDateOfBirth" ValidationExpression="^([0]\d|[1][0-2])\/([0-2]\d|[3][0-1])\/([2][01]|[1][6-9])\d{2}(\s([0-1]\d|[2][0-3])(\:[0-5]\d){1,2})?$" ClientIDMode="Static" ErrorMessage="Please enter a valid Date of Birth.">* </asp:RegularExpressionValidator>Calender is working fine in IE. But in chrome the position of calender goes up.I searched on google and found some solutions like use div and place calendar and textbox inside div. Add style to div.Also apply height and width to popup of calendar through jquery code.But it is not working for me.Please note that it is in dotnetnukeAny help will be appreciated. :) 解决方案 " ClientIDMode="Static" ErrorMessage="Please enter a valid Date of Birth.">* </asp:RegularExpressionValidator>Calender is working fine in IE. But in chrome the position of calender goes up.I searched on google and found some solutions like use div and place calendar and textbox inside div. Add style to div.Also apply height and width to popup of calendar through jquery code.But it is not working for me.Please note that it is in dotnetnukeAny help will be appreciated. :) 这篇关于镀铬中的ajax日历扩展器位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!