表格对齐问题
Closed this issue · 4 comments
在Demo里面,Name Color的表头会根据表格的内容而对齐,请问是怎样做到的?
在自己的电脑上使用MTE的时候,表头跟表格的内容是不对齐的。(注意)显示效果没有问题,很好。
Name | Color | Mass [g] |
---|---|---|
Alex | Red | 100 |
Dell | Blue | 200 |
对不起,我不明白中文。
Sorry, I don't understand Chinese.
You mean that the alignment of the header row is inconsistent with the demo, and you want to align like the demo, right?
It can be configured from the package settings.
By default (Follow column's alignment
), the header is aligned as the other cells in the column are.
| Name | Color | Mass [g] |
| ------ | ------ | -------- |
| apple | red | 180 |
| banana | yellow | 120 |
| grape | green | 150 |
In the demo, it uses Center
and the header is always aligned center.
(Actually this is the old default and I haven't updated the demo yet.)
| Name | Color | Mass [g] |
| ------ | ------ | -------- |
| apple | red | 180 |
| banana | yellow | 120 |
| grape | green | 150 |
Hi Susisu, sorry that i used Chinese in the original issue. In the demo (GIF), the cell length will be auto increated.
I try to type:
| Name | color | Mass [g] |
But the output is not formatted as the demo (align the same size).
| --- | --- | --- |
- there are 3 - generated.
Can you share how to do as the demo shows?
@anson2416 Thank you for explaining in English!
Perhaps your "Format Type" setting is set to "Each Row", isn't it?
If so, set it to "Whole Table" and it will work as the demo.