有沒有辦法將文本框的寬度限制爲MaxLength屬性?在現在我的情況下,TextBox控件放置在一個表格單元格在這個片段:如何將文本框的寬度設置爲與ASP.NET中的MaxLength相同
<td class=TDSmallerBold style="width:90%">
<asp:textbox id="txtTitle" runat="server"
CausesValidation="true"
Text="Type a title here..be concise but descriptive. Include price."
ToolTip="Describe the item with a short pithy title (most important keywords first). Include the price. The title you provide here will be the primary text found by search engines that index Zipeee content."
MaxLength="60"
Width="100%">
</asp:textbox>
(我知道我不應該用HTML表格來控制肯定layout..another主題),但有一個如何將實際寬度限制爲鍵入框中允許的最大字符數?