Leudassdf Posted April 14, 2013 at 10:38 PM Report #503197 Posted April 14, 2013 at 10:38 PM <tr> <td style="width: 82px" > <asp:TextBox ID="TextBox1" runat="server" Width="82px"></asp:TextBox> </td> <td > <asp:TextBox ID="TextBox2" runat="server" Width="100%"></asp:TextBox> </td> <td > <asp:TextBox ID="TextBox3" runat="server" Width="100%"></asp:TextBox> </td> <td > <asp:TextBox ID="TextBox4" runat="server" Width="82px"></asp:TextBox> </td> <td > <asp:TextBox ID="TextBox5" runat="server" Width="70px"></asp:TextBox> </td> <td> <asp:TextBox ID="TextBox6" runat="server" Width="95px"></asp:TextBox> </td> <td align="center" style="width: 81px" > <asp:CheckBox ID="chk_bio" runat="server" Width="100%"/> </td> <td > <asp:TextBox ID="TextBox7" runat="server" Width="100%"></asp:TextBox> </td> <td > <asp:TextBox ID="TextBox8" runat="server" Width="100%"></asp:TextBox> </td> <td> <asp:TextBox ID="TextBox9" runat="server" Width="100%"></asp:TextBox> </td> </tr> </table> Boas pessoal, Como podem constatar no código em cima,onde tenho <td style="width: 82px" > <asp:TextBox ID="TextBox1" runat="server" Width="82px"></asp:TextBox> </td>, eu defino o tamanho da coluna em 82px e o tamanho da texbox em 82px. Na outra coluna nao defino tamanho nenhum. pois quero que ele se adapte. mas o problema é que eu quero que a textbox ocupe toda a coluna. Se por exemplo colocarmos a coluna com 82px e o comprimento da texbox a 100%, a textbox ultrapassa a borda da coluna. Eu gostaria de saber se alguem sabe como posso resolver o problema Cumprimentos
ark15 Posted April 15, 2013 at 02:53 PM Report #503254 Posted April 15, 2013 at 02:53 PM <table width="600px"> <tr style="padding:1px;"> <td style="width:82px; padding:1px"> <asp:TextBox runat="server" Width="82px"></asp:TextBox> </td> <td style="padding:1px"> <asp:TextBox runat="server" Width="100%"></asp:TextBox> </td> <td style="width:82px; padding:1px"> <asp:TextBox runat="server" Width="82px"></asp:TextBox> </td> <td style="padding:0px"> <asp:TextBox runat="server" Width="100%"></asp:TextBox> </td> <td style="width:100px; padding:1px"> <asp:TextBox ID="TextBox1" runat="server" Width="100px"></asp:TextBox> </td> <td style="width:50px; padding:1px"> <asp:TextBox ID="TextBox2" runat="server" Width="100%"></asp:TextBox> </td> <td style="width:20px; padding:1px""> <asp:TextBox ID="TextBox3" runat="server" Width="100%"></asp:TextBox> </td> </tr> </table> é isto ?
Leudassdf Posted April 17, 2013 at 05:40 PM Author Report #503680 Posted April 17, 2013 at 05:40 PM <table width="600px"> <tr style="padding:1px;"> <td style="width:82px; padding:1px"> <asp:TextBox runat="server" Width="82px"></asp:TextBox> </td> <td style="padding:1px"> <asp:TextBox runat="server" Width="100%"></asp:TextBox> </td> <td style="width:82px; padding:1px"> <asp:TextBox runat="server" Width="82px"></asp:TextBox> </td> <td style="padding:0px"> <asp:TextBox runat="server" Width="100%"></asp:TextBox> </td> <td style="width:100px; padding:1px"> <asp:TextBox ID="TextBox1" runat="server" Width="100px"></asp:TextBox> </td> <td style="width:50px; padding:1px"> <asp:TextBox ID="TextBox2" runat="server" Width="100%"></asp:TextBox> </td> <td style="width:20px; padding:1px""> <asp:TextBox ID="TextBox3" runat="server" Width="100%"></asp:TextBox> </td> </tr> </table> é isto ? Isso e mais ou menos o que tenho. o problema é que ao definir a texbox com o comprimento em % neste caso a 100% a mesma fica ligeiramente fora do limite direito da coluna.
ark15 Posted April 18, 2013 at 08:03 AM Report #503745 Posted April 18, 2013 at 08:03 AM Quando metes a text box a 100% , defines um tamanho fixo no td. Tipo: <td style="width:50px;">
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now