使用日期控件
使用日期控件,使用onclick事件在textBox中下拉显示.
出现下方的textBox控件覆盖了日期控件.
弹出日期控件自然是需要在页面的最上层显示的.请问这个问题如何解决.
------解决方案--------------------
<div id= "cal " style= "position:relative; top:0; left:0; z-index:1; overflow:auto; display:none ">
<asp:Calendar ID= "Calendar2 " runat= "server " DayHeaderStyle-Font-Size= "12px " BorderColor= "#666666 "
FirstDayOfWeek= "Monday " NextMonthText= "Next " PrevMonthText= "Prev " TitleStyle-BackColor= "#ffba00 "
BackColor= "#FFCD4A " Width= "192 " DayHeaderStyle-Font-Bold= "false " DayHeaderStyle-VerticalAlign= "bottom "
SelectedDayStyle-BackColor= "#ffba00 " SelectedDayStyle-BorderWidth= "1 " SelectedDayStyle-BorderColor= "#666666 "
TodayDayStyle-BackColor= "#ffffff " TodayDayStyle-BorderColor= "#666666 " TodayDayStyle-BorderWidth= "1 "
SelectionMode= "Day " OnSelectionChanged= "select_date " OnVisibleMonthChanged= "MonthChanged "> </asp:Calendar>
</div>
onclick textbox时用js设置div的display=block
抢个SF
------解决方案--------------------梅花雨日历控件很好用
参考
http://www.cnblogs.com/yank/archive/2008/08/14/1267746.html
http://www.cnblogs.com/PiedPiper/archive/2007/01/10/617004.html
------解决方案--------------------你可以用最流行的my97datepickter
http://download.csdn.net/user/greatverve/My97DatePicker
http://download.csdn.net/user/greatverve/datepicker
也可以看看这个
http://blog.csdn.net/greatverve/archive/2008/12/15/3521561.aspx