我想要一个看起来像这样的 HTML 表格:
C1 Some text right here
C2 Some text here too
C3 And maybe some text here
C4 Basically like a text written with tabbing
C5 You get the point?
我知道我可能可以在这里使用一个列表,但我希望列(每行的最后一个除外)具有固定的宽度。在 LaTeX 中,这会起作用:
\newenvironment{mytable}
{\begin{tabbing}
xxxxxxxxx\=xxxxxxxxx\=xxxxxxxxx\=xxxxxxxxx\=xxxxxxxxx\=xxxxxxxxx\=\kill}
{\end{tabbing} }%
mytable{
C1 \> Some text right here \+\\
C2 \> Some text here too \+\\
C3 \> And maybe some text here \-\\
C4 \> Basically like a text written with tabbing \-\\
C5 \> You get the point?
}
我尝试在 HTML/CSS 中执行此操作,但结果如下所示:
C1 Some text right here
C2 Some text here too
C3 etc...
有小费吗?