【发布时间】:2018-07-30 18:52:17
【问题描述】:
我有一个带有 3 个单元格的 table,我想知道是否可以在每个单元格之间“旋转”数据?
基本上,所以在设定的时间后,我希望第一个单元格中的数据移动到第二个单元格,第二个单元格的数据移动到第三个单元格,第三个单元格的数据移动到第一个单元格,依此类推上...
我猜它是否可能需要某种形式的 JavaScript?
我愿意接受所有可能的解决方案
这是我想要实现的一个示例:
<table class="three" width="150" height="35%" border="1"><tr>
<td colspan="2" align="center" valign="bottom" style="font-size:30px;"><strong>T/O: £48k</strong></td></tr>
<tr>
<td width="60" align="center" style="font-size:12px"><strong>GP:£7k</strong>
</td>
<td width="60" align="center" style="font-size:12px"><strong>M:15%</strong>
</td>
</tr>
</table>
【问题讨论】:
-
如果你想在客户端做这个,你需要javascript。因此它将涉及到玩 DOM,使用 jquery 让您的生活更轻松。
标签: javascript css html-table