首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

2012-03-23 
文本框超过了单元格的大小我在用.net2005画页面的时候,出现了一个问题.代码如下:asp:MultiViewID Multi

文本框超过了单元格的大小
我在用.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>

热点排行