首页 > 解决方案 > Datepicker整个日历不显示html表中的所有日期

问题描述

我有一个 html 表,其中包含以下 2 列 logic:iterate :

<logic:notPresent name="divisionLevel"><td><input type="text" name="txtBeginDate${ctr+1}" id="txtBeginDate${ctr+1}" class="is-datepick" style="width: 100%;" value="<bean:write name="row" property="reportingBeginDte"/>"/></td></logic:notPresent>
<logic:notPresent name="divisionLevel"><td><input type="text" name="txtEndDate${ctr+1}" id="txtEndDate${ctr+1}" class="is-datepick" style="width: 100%;" value="<bean:write name="row" property="reportingEndDte"/>"/></td></logic:notPresent>

问题是,当您单击日期时,日历仅显示左半部分。我已经尝试了一些z-index,并且只有几个 div,但无论我尝试什么,它仍然是部分日期选择器。

部分日历外观截图:

在此处输入图像描述

更新:已解决!感谢所有花时间提供帮助的人。为了解决这个问题,我在 display:none 样式中添加了表格 ID:

#maintable td:nth-child(1){ display : none;}
#maintable td:nth-child(2){ display : none;}
#maintable td:nth-child(3){ display : none;}
#maintable td:nth-child(4){ display : none;}

标签: javascriptjqueryhtmlcssstruts2

解决方案


推荐阅读