繁体   English   中英

在表格顶部添加新行

[英]Add a new row at the top of the table

我已经创建了表格,并在标题行中列出了版本号为num的应用程序,对于该列,我给出了一些链接来下载该版本的应用程序。 但是,如果有人在服务器上上传了该应用程序的新版本,则必须在HTML页面的第一行中包含该链接,而较旧的版本应在第二行中。

如何实现呢? 我们是否需要在HTML中实现任何内容,还是需要在服务器端进行更改? 表格中的行数没有任何限制。

我的代码如下:

<table border = "2" align= "center" cellpadding = "10">
<tr>
<th> Date </th>
  <th> Build No </th>
<th colspan="2">Production </th>
  <th colspan="2">Staging </th>
 </tr>
   <tr>
<td>date</td>
<td>1.5</td>
<td>Prod With Simulator</td>
<td>Prod WithOut Simulator</td>
<td>Stag With Simulator</td>
<td>Stag WithOut Simulator</td>
</tr>
<tr>
<td>date</td>
<td>1.5</td>
<td><a href= "http://some ur/">Download here</a></td>
<td><a href= "http://some ur/">Download here</a></td>
<td><a href= "http://some ur/">Download here</a></td>
<td><a href= "http://some ur/">Download here</a></td>
</tr>
</table>

您应该使用数据库...如果有人上载了应该从您的数据库存储在数据库中的新版本,则应该迭代并动态显示表

我们无法将html连接到数据库..在jsp中我们可以连接,因此您可以在jsp中编写您的html并连接数据库... roseindia.com(请参阅数据库连接)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM