读书人

文本框超过了单元格的大小解决方案

发布时间: 2012-03-23 12:06:21 作者: rapoo

文本框超过了单元格的大小
我在用.net 2005 画页面的时候,出现了一个问题.代码如下:
<asp:MultiView ID= "MultiView1 " runat= "server " ActiveViewIndex= "0 " OnPreRender= "MultiView1_PreRender ">
<asp:View ID= "View1 " runat= "server ">
<table align= "center " height= "200 " width= "90% ">
<caption>
</caption>
<tr>
<td width= "20% ">
操作时间 </td>
<td>
<asp:TextBox ID= "TextBox3 " runat= "server " Width= "100% " Wrap= "False "> </asp:TextBox> </td>
<td align= "center " width= "5% ">
到 </td>
<td>
<asp:TextBox ID= "TextBox4 " runat= "server " Width= "100% " Wrap= "False "> </asp:TextBox> </td>
</tr>
</table>


</asp:View>
</asp:MultiView>
在页面预览的时候我发现 TextBox3的大小比他所在的单元格要大,导致了文本框最右边的部分看不到.请个位网友帮帮忙

[解决办法]
Width= "100% " 调整一下 70% 试试
[解决办法]
<asp:TextBox ID= "TextBox3 " runat= "server " Width= "100px " Wrap= "False "> </asp:TextBox>

读书人网 >asp.net

热点推荐