propiedades abarcan col HTML
Ejemplos
Aquí, la primera dos columnas color de fondo a rojo:
<table border="1">
<colgroup>
<col span="2" style="background-color:red" />
<col style="background-color:yellow" />
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>
<colgroup>
<col span="2" style="background-color:red" />
<col style="background-color:yellow" />
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>
Trate »
Soporte para el navegador
Todos los principales navegadores soportan la propiedad lapso.
Definición y Uso
lapso atributo especifica el número de columnas del elemento col debe unir.
Diferencias entre HTML 4.01 y HTML5
NINGUNO.
gramática
<col span="number">
propiedad Valor
值 | 描述 |
---|---|
number | 设置 col 元素应该横跨的列数。 |
HTML <col> etiqueta