【发布时间】:2016-08-01 14:01:40
【问题描述】:
我时间紧迫,会尽量简短,如果我的解释有问题,我会在晚上尝试编辑。
简单地说,我有一个表格,名称和年龄,它在页面加载一行时开始。当第一个填充不为空的内容时,另一行会自动加载为空。
我更喜欢使用 JavaScript,但我也可以使用 asp.net 进行管理。 我希望我能很好地解释自己,抱歉这么简短。
任何帮助将不胜感激。
编辑:代码
<table class="table table-striped" style="margin:10px" id="tablaSKU" runat="server">
<thead>
<tr>
<th></th>
<th>SKU</th>
<th>Precio €</th>
<th>Descripción</th>
<th>Fecha Inicio Demo</th>
<th>Fecha Fin Demo</th>
<th>Tipo de préstamo</th>
</tr>
</thead>
<tbody>
<tr>
<th>1-</th>
<th class="col-sm-2" name="sku"><asp:TextBox ID="sku" runat="server" class="form-control"></asp:TextBox></th>
<th class="col-sm-1"><asp:TextBox ID="precio" runat="server" class="form-control"></asp:TextBox></th>
<th class="col-sm-3"><asp:TextBox ID="descripProd" runat="server" class="form-control"></asp:TextBox></th>
<th class="col-sm-2"><asp:TextBox ID="dataInit" runat="server" class="form-control"></asp:TextBox></th>
<th class="col-sm-2"><asp:TextBox ID="dataFin" runat="server" class="form-control"></asp:TextBox></th>
<th class="col-sm-2">
<asp:DropDownList ID="opcion" runat="server" CssClass="formularioChekLst form-control">
<asp:ListItem>Opciones : </asp:ListItem>
<asp:ListItem>Opción 1</asp:ListItem>
<asp:ListItem>Opción 2</asp:ListItem>
<asp:ListItem>Opcion 3</asp:ListItem>
</asp:DropDownList>
</th>
</tr>
</tbody>
</table>
HTML 代码
<table class="table table-striped" style="margin:10px" id="tablaSKU" runat="server">
<thead>
<tr>
<th></th>
<th>SKU</th>
<th>Precio €</th>
<th>Descripción</th>
<th>Fecha Inicio Demo</th>
<th>Fecha Fin Demo</th>
<th>Tipo de préstamo</th>
</tr>
</thead>
<tbody>
<tr>
<th>1-</th>
<th class="col-sm-2"><input ID="sku" runat="server" class="form-control"></input></th>
<th class="col-sm-1"><input ID="precio" runat="server" class="form-control"></input></th>
<th class="col-sm-3"><input ID="descripProd" runat="server" class="form-control"></input></th>
<th class="col-sm-2"><input ID="dataInit" runat="server" class="form-control"></input></th>
<th class="col-sm-2"><input ID="dataFin" runat="server" class="form-control"></input></th>
<th class="col-sm-2">
<asp:DropDownList ID="opcion" runat="server" CssClass="formularioChekLst form-control">
<asp:ListItem>Opciones : </asp:ListItem>
<asp:ListItem>Opción 1</asp:ListItem>
<asp:ListItem>Opción 2</asp:ListItem>
<asp:ListItem>Opcion 3</asp:ListItem>
</asp:DropDownList>
</th>
</tr>
</tbody>
</table>
【问题讨论】:
标签: javascript html asp.net vb.net html-table