编辑 最后修改时间 2022/03/04 19:12
TablesGenerator
LaTeX
\begin{table}[]
\begin{tabular}{|l|c|r|}
\hline
Tables & Are & Cool \\ \hline
col 1 is & left-aligned & \$1600 \\ \hline
col 2 is & & \$12 \\ \hline
col 3 is & right-aligned & \$1 \\ \hline
\end{tabular}
\end{table}
HTML
<style type="text/css">
.tg {border-collapse:collapse;border-spacing:0;}
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
overflow:hidden;padding:10px 5px;word-break:normal;}
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}
.tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top}
.tg .tg-dvpl{border-color:inherit;text-align:right;vertical-align:top}
</style>
<table class="tg">
<thead>
<tr>
<th class="tg-0pky">Tables</th>
<th class="tg-c3ow">Are</th>
<th class="tg-dvpl">Cool</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tg-0pky">col 1 is</td>
<td class="tg-c3ow" rowspan="2">left-aligned</td>
<td class="tg-dvpl">$1600</td>
</tr>
<tr>
<td class="tg-0pky">col 2 is</td>
<td class="tg-dvpl">$12</td>
</tr>
<tr>
<td class="tg-0pky">col 3 is</td>
<td class="tg-c3ow">right-aligned</td>
<td class="tg-dvpl">$1</td>
</tr>
</tbody>
</table>
Text
+----------+---------------+-------+
| Tables | Are | Cool |
+----------+---------------+-------+
| col 1 is | left-aligned | $1600 |
+----------+ +-------+
| col 2 is | | $12 |
+----------+---------------+-------+
| col 3 is | right-aligned | $1 |
+----------+---------------+-------+
Markdown
| Tables | Are | Cool |
|----------|:-------------:|------:|
| col 1 is | left-aligned | $1600 |
| col 2 is | | $12 |
| col 3 is | right-aligned | $1 |