Propiedad columnWidth de estilo
Ejemplo
Cambiar el ancho de las columnas:
document.getElementById("myDIV").style.columnWidth = "100px";
Definición y uso
La propiedad columnWidth especifica el ancho de las columnas.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
columnWidth | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaxis
Devuelve la propiedad columnWidth:
object.style.columnWidth
Establezca la propiedad columnWidth:
object.style.columnWidth = "auto|length|initial|inherit"
Valores de propiedad
Value | Description |
---|---|
auto | Deafult value. The column width will be determined by the browser |
length | A length that specifies the width of the columns |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Detalles técnicos
Valor por defecto: | auto |
---|---|
Valor de retorno: | Una cadena, que representa la propiedad de ancho de columna de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Tutorial de CSS3: columnas múltiples de CSS3
Referencia de CSS: propiedad de ancho de columna
❮ Objeto de estilo