我有一个Telerik文件上传控件。它呈现与页面上的其他项目不对齐。如何让控件渲染左对齐?
呈现页面的屏幕截图:
标记:
<table>
<tr>
<td colspan="2">
<asp:Label ID="PleaseSelectAFileLabel" runat="server" Visible="false" Text="Please select a file." CssClass="ControlLabel"></asp:Label><br />
<asp:Label ID="PleaseSelectAFileType" runat="server" Visible="false" Text="Please select a file type." CssClass="ControlLabel"></asp:Label>
</td>
</tr>
<tr>
<td>
<div style="font-size:15px; font-weight:bold">File Type</div>
</td>
<td style="width: 296px" colspan="2">
<asp:DropDownList ID="EmployeeImportFormatDropDownList" AutoPostBack="true" runat="server" Width="200px" OnLoad="EmployeeImportFormatDropDownList_OnLoad"></asp:DropDownList>
<asp:LinkButton ID="EmployeeImportFormatDownloadLink" runat="server" Text="Download Template" OnClick="EmployeeImportFormatDownloadButton_OnClick" />
</td>
</tr>
<tr>
<td>
<div style="font-size:15px; font-weight:bold">File</div>
</td>
<td colspan="2">
<telerik:RadAsyncUpload runat="server" ID="DataImportsRadAsyncUpload" MultipleFileSelection="Disabled" MaxFileInputsCount="1" Width="375px" AllowedFileExtensions=".csv" />
</td>
</tr>
<tr valign="top">
<td width="75px"></td>
<td style="width: 296px">
<asp:Button ID="DataImportFileUploadImportButton" runat="server" Text="Import" OnClick="DataImportFileUploadImportButton_OnClick"/> <asp:Button ID="DataImportFileUploadCancelButton" runat="server" Text="Cancel" OnClick="DataImportUploadCancelButton_OnClick"/><br /><br />
<asp:LinkButton ID="DataImportMappingLink" runat="server" Text="Employee Data Import Mapping" PostBackUrl="../Company/ImportDataMapping.aspx"></asp:LinkButton>
</td>
</tr>
</table>
答案 0 :(得分:0)
我追踪了它。 Telerik控件使用无序列表(ul)在上载文件旁边创建绿点。在母版页中,样式设置为宽度为25像素。