English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Manual de referência HTML

大全 de etiquetas HTML

HTML: <tr> propriedade charoff

<tr> A maneira de usar a propriedade charoff, demonstração em tempo real de como usar a propriedade charoff do <tr>, compatibilidade do navegador, definição da sintaxe e detalhes dos valores dos atributos.

 HTML <tr> tag

Exemplo online

Coloque o número1Line and the2The content of the row is aligned two characters to the right of the "." character:

<table style="width:100%" border="1">
   <tr align="char" char="." charoff="2">
    <td>2018</td>
    <td>$15320.00</td>
  </tr>
    <tr align="char" char="." charoff="2">
    <td>2019</td>
    <td>$18320.00</td>
  </tr>
</table>
Test see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

Almost all mainstream browsers do not support the charoff attribute.

Definition and usage

HTML5 The charoff attribute for <tr> is not supported.

The charoff attribute specifies the alignment offset of the content relative to the character specified by the char attribute.

The charoff attribute can only be used when the align attribute is set to "char" and the char attribute has been set.

Syntax

<tr charoff="number">

Attribute value

ValueDescription
numberSpecify the alignment method.
Positive numbers align characters to the right.
Negative numbers align characters to the left.
 HTML <tr> tag