Propriedade de largura da coluna de estilo
Exemplo
Altere a largura das colunas:
document.getElementById("myDIV").style.columnWidth = "100px";
Definição e uso
A propriedade columnWidth especifica a largura das colunas.
Suporte ao navegador
Property | |||||
---|---|---|---|---|---|
columnWidth | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaxe
Retorne a propriedade columnWidth:
object.style.columnWidth
Defina a propriedade columnWidth:
object.style.columnWidth = "auto|length|initial|inherit"
Valores de propriedade
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 |
Detalhes técnicos
Valor padrão: | auto |
---|---|
Valor de retorno: | Uma String, representando a propriedade column-width de um elemento |
Versão CSS | CSS3 |
Páginas relacionadas
Tutorial CSS3: várias colunas CSS3
Referência CSS: propriedade column-width
❮ Objeto de estilo