为什么自定义验证器控件占用高度,即使它设置为显示等于动态:
<tr>
<td style="min-height: 0px;">
<asp:CustomValidator ID="cvFiscalFromyear" runat="server" Style="width: 160px;" ErrorMessage="From fiscal year required" ForeColor="Green" Display="Dynamic" SetFocusOnError="true" ClientValidationFunction="fncFromFiscalYear">Required</asp:CustomValidator>
</td>
<td style="min-height: 0px;">
<asp:CustomValidator ID="cvFiscalToyear" Style="width: 160px;" runat="server" ErrorMessage="To fiscal year required" ForeColor="Green" Display="Dynamic" ClientValidationFunction="fncToFiscalYear">Required</asp:CustomValidator>
</td>
</tr>
它在表格标签内。在此先感谢:)
答案 0 :(得分:2)
Display="Dynamic"
可能是由您所显示为Customvalidator的内容所显示的“必需”功能。