日期控件问题
使用日期控件,使用onclick事件在textBox中下拉显示.
出现下方的textBox控件覆盖了日期控件.
弹出日期控件自然是需要在页面的最上层显示的.请问这个问题如何解决.
------解决方案--------------------只要在div内容后面添加如下代码就可以了
<iframe src= "javascript:false " style= "position:absolute; visibility:inherit; top:0px; left:0px; width:100px; height:200px; z-index:-1; filter= 'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0) '; "> </iframe>
------解决方案--------------------把日期控件放在div中
------解决方案-------------------- <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
------解决方案--------------------http://community.csdn.net/Expert/topic/4691/4691340.xml?temp=.4439966
------解决方案--------------------放在 <div> ............ </div> 中
------解决方案--------------------很有多好的js日期控件,lz不妨一试
------解决方案--------------------顶
http://community.csdn.net/Expert/topic/4677/4677773.xml?temp=.1059076
------解决方案--------------------是因为象DROPDOWNLIST类似的下拉显示图层在系统中默认是最高的,所以会覆盖掉你的控件,你可以到网上去下载一些JS的日期控件.