文本在表格单元格垂直对齐 [英] Vertical alignment of text in a table cell
本文介绍了文本在表格单元格垂直对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想对齐文本底部的第二个单元格。 第一个单元延伸,因为insufficent宽度为2行,这是确定 但在第二单元中的文本是只有一条线到并显示在细胞的顶端。 我该如何调整其底部?
我想垂直对齐=自下而上的text-align =底部的text-align =端上 行,单元格和块级别。任何人的工作?!?
< FO:表字体=正常的10号宋体,无衬线WIDTH =100%>
< FO:表列的列宽=40毫米/>
< FO:表列的列宽=130毫米/>
< FO:表体>
< FO:表列>
< FO:表单元格边距,之前=3点补白后=3点和GT;
< FO:Block字体体重=黑体>在%每年收费费率/Pensionssatz在%P.A:其中; / FO:块GT;
< / FO:表电池>
< FO:表单元格边距,之前=3点补白后=3点和GT;
< FO:块GT;
**这个文本欲对准底部(第二行)**
< / FO:块GT;
< / FO:表电池>
< / FO:表列>
< / FO:表体>
< / FO:表>
解决方案
使用 显示-align =后的
上的表格单元格:
< FO:表单元格边距,之前=3点补白后=3点显示-ALIGN =后>
< FO:块GT;
**这个文本欲对准底部(第二行)**
< / FO:块GT;
< / FO:表电池>
I would like to align the text to bottom in the second cell. The first cell extends to 2 lines, because of insufficent width and that's OK But the text in the second cell is only one line and shows up at the top of the cell. How can I align it to bottom?
I tried vertical-align="bottom" text-align="bottom" text-align="end" on row , cell and block levels.. Any of them worked?!?
<fo:table font="normal 10 pt Arial, sans-serif" width="100%">
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="130mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell padding-before="3pt" padding-after="3pt">
<fo:block font-weight="bold">Pricing Rate in % p.a. / "Pensionssatz in % p.a.":</fo:block>
</fo:table-cell>
<fo:table-cell padding-before="3pt" padding-after="3pt">
<fo:block>
**This text I want to be aligned to bottom (in the second line)**
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
解决方案
Use display-align="after"
on the table cell:
<fo:table-cell padding-before="3pt" padding-after="3pt" display-align="after">
<fo:block>
**This text I want to be aligned to bottom (in the second line)**
</fo:block>
</fo:table-cell>
这篇关于文本在表格单元格垂直对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文