Latest web development tutorials

HTML thead charoff propriété

Manuel tag de référence de HTML HTML <thead> tag

Exemples

Le <thead> dans le contenu et le caractère "M" à la position alignée à droite de deux caractères:

<table border="1" width="100%">
<thead align="char" char="M" charoff="2">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>

Essayez »

support du navigateur

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Presque tous les principaux navigateurs ne supportent pas la propriété charoff.


Définition et utilisation

HTML5 ne supporte pas le <thead> charoff propriété.

Attribut spécifie charoff <thead> est aligné par rapport au contenu du décalage spécifié par les caractères d'attribut char.

Seulement lorsque l'attribut align réglé sur "char" propriété char et configuré pour utiliser la propriété charoff.


grammaire

<thead charoff="number">

Valeur de la propriété

描述
number 规定对齐方式。
正数规定向字符的右边对齐。
负数规定向字符的左边对齐。


Manuel tag de référence de HTML HTML <thead> tag