移动表中的元素(Moving elements in table)
可以说我有一个HTML表格
|td,td,td| |td|如果我想将底行的td移动到行的右侧。 我会怎么做? 另外我不能使用3的colspan。我需要将整个单元格移过来。
最终结果
|td,td,td| | td|Lets say I have an html table
|td,td,td| |td|if I wanted to move the td on the bottom row over to the right of the row. How would I do that? Also I cant use a colspan of 3. I need to move the entire cell over.
end result
|td,td,td| | td|最满意答案
创建占位符:
<tr> <td>...</td> <td>...</td> <td>...</td> </tr> <tr> <td></td> <td></td> <td>...</td> </tr>或者使用colspan:
<tr> <td>...</td> <td>...</td> <td>...</td> </tr> <tr> <td colspan="3">...</td> </tr>或两者:
<tr> <td>...</td> <td>...</td> <td>...</td> </tr> <tr> <td colspan="2"></td> <td>...</td> </tr>Either create placeholders:
<tr> <td>...</td> <td>...</td> <td>...</td> </tr> <tr> <td></td> <td></td> <td>...</td> </tr>Or use colspan:
<tr> <td>...</td> <td>...</td> <td>...</td> </tr> <tr> <td colspan="3">...</td> </tr>Or both:
<tr> <td>...</td> <td>...</td> <td>...</td> </tr> <tr> <td colspan="2"></td> <td>...</td> </tr>更多推荐
发布评论