Latest web development tutorials

HTML attribut tfoot valign

Tag Référence HTML tfoot HTML <tfoot> tag

Exemples

L'élément <tfoot> dans la partie d'extrémité de l'alignement vertical du contenu:

<table border="1" width="100%">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
<tfoot valign="bottom">
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
</table>

Essayez »

support du navigateur

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Tous les principaux navigateurs prennent en charge les attributs valign.


Définition et utilisation

HTML5 ne prend pas en charge <tfoot> valign attributs. Utilisez CSS à la place.

valign spécifié par l'attribut <tfoot> alignement vertical du contenu de l'élément.


grammaire

<tfoot valign="top|middle|bottom|baseline">

Valeur de la propriété

描述
top 对内容进行上对齐。
middle 对内容进行居中对齐(默认值)。
bottom 对内容进行下对齐。
baseline 与基线对齐。基线是一条虚构的线。在一行文本中,大多数字母以基线为基准。baseline 值设置行中的所有表格数据都分享相同的基线。该值的效果常常与 bottom 值相同。不过,如果文本的字号各不相同,那么 baseline 的效果会更好。请看下面的图示。

Lorsque la taille du texte ne sont pas les mêmes, en bas par rapport à la ligne de base icône:

valign = "bottom"

valign = "référence"


Tag Référence HTML tfoot HTML <tfoot> tag