<table border="1">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>
</table>
这段 HTML 代码为我提供了以下内容
1 2 3 4
5 6 7
但我希望表格从右到左打印列,如下所示
4 3 2 1
* 7 6 5
*是空格
我需要它完全像这个结果:http://postimg.org/image/la8aj8ckd/
最佳答案
您可以像这样在表上添加 dir=rtl 来做到这一点:
<table border="1" DIR="RTL">
更多信息,您可以阅读http://www.i18nguy.com/markup/right-to-left.html
希望对你有帮助
关于html - 表格列从右到左开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16805147/