スタイルcolumnWidthプロパティ
例
列の幅を変更します。
document.getElementById("myDIV").style.columnWidth = "100px";
定義と使用法
columnWidthプロパティは、列の幅を指定します。
ブラウザのサポート
Property | |||||
---|---|---|---|---|---|
columnWidth | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
構文
columnWidthプロパティを返します。
object.style.columnWidth
columnWidthプロパティを設定します。
object.style.columnWidth = "auto|length|initial|inherit"
プロパティ値
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 |
技術的な詳細
デフォルト値: | 自動 |
---|---|
戻り値: | 要素の列幅プロパティを表す文字列 |
CSSバージョン | CSS3 |
関連ページ
CSS3チュートリアル:CSS3複数列
CSSリファレンス:column-widthプロパティ
❮スタイルオブジェクト