Latest web development tutorials

HTML tr charoff property

HTML tr tag Reference Manual HTML <tr> tag

Examples

. "" The contents of the second and third rows of the two characters and character to the right position alignment:

<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr align="char" char="." charoff="2">
<td>January</td>
<td>$100.00</td>
</tr>
<tr align="char" char="." charoff="2">
<td>February</td>
<td>$10.00</td>
</tr>
</table>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost all of the major browsers do not support charoff property.


Definition and Usage

HTML5 does not support the <tr> charoff property.

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

Only when the align attribute set to "char" char property and set to use charoff property.


grammar

<tr charoff="number">

Property Value

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


HTML tr tag Reference Manual HTML <tr> tag