我怎么能并排创建两个表 [英] how can i create two table side by side

查看:83
本文介绍了我怎么能并排创建两个表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在创建一个订单页面。如果客户存在,则只插入将获取信息并显示在姓名地址和电话文本框中的名称。

如果客户是新的,那么我想显示三个文本框,名称,地址和电话。



当客户下订单时我们看不到它们但如果客户是新的则点击新按钮并显示这些文本框。



问题是,当我在表单页面中添加这些文本框时,所有文本框都转移到了下面。



我想在parellel中有两个表。在一张桌子里面,我会把新按钮和其他桌子放在这个文本框中供新客户使用。



给我两张桌子并排使用的html标签。



谢谢

Hi,

I am creating an order page. If customer is existing then insert only name that will fetch information and display in name address and phone textbox.
If customer is new then I want to display three textboxes, name, address and phone.

Iwant them invisible when customer makes an order but if customer is new then click on new button and display these textboxes.

Problem is that when I am adding these textboxes in form page then all textboxes shifted to below.

I want two tables in parellel. Inside one table I will put new button and other table put these textbox for new customer.

Give me what html tag use for two table side by side.

Thanks

推荐答案

这可以帮到你

This may help you
<div id="div1" width="100%">
    <table width="30%" align="left" border="1px">
    <tr><td colspan="3">
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </td>
    </tr>
    </table>
    <table width="80%" align="right"  border="1px">
    <tr><td>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </td><td>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </td>
    <td>
        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
    </td></tr>
    </table>
    </div>


.table_left {
     float:left;
}

.table_right {
     float:right;
}


这篇关于我怎么能并排创建两个表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆