Template:Div col
属性 | Internet Explorer |
Firefox | Safari | Chrome | Opera |
---|---|---|---|---|---|
column-width column-count |
≥ 10 (2012) |
≥ 1.5 (2005) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
columns | ≥ 10 (2012) |
≥ 9 (2011) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
break-before break-after break-inside |
≥ 10 (2012) |
≥ 65 (2019) |
≥ 10 (2016) |
≥ 65 (2016) |
≥ 15 (2013) |
该模版把列表分成多列。可以选择缩小字体。
使用方式
參數
- cols =
- 指定列数。預設=1。
- colwidth =
- 指定列的宽度,然後顯示時根據螢幕宽度動態设定列數;越宽的螢幕顯示的列数越多。這個參數優於cols=設定。
- small =
- 如果設為yes,指定使用小字体(90%)。預設="no"。
- style =
- 指定任意自定義格式。
範例一
{Div col} * a * b * c * d {Div col end}
- 顯示
- a
- b
- c
- d
範例二
{Div col|cols=4|small=yes} * a * b * c * d * e * f * g * h {Div col end}
- 顯示
- a
- b
- c
- d
- e
- f
- g
- h
範例三
{Div col|colwidth=10em} * a * b * c * d * e * f * g * h {Div col end}
- 顯示
- a
- b
- c
- d
- e
- f
- g
- h
另見
- {Col-begin} ({Col-start})
- {Col-end} ({End})
- {Div col}( )、{No col break}、{Div col end}
- {Column}、{Columns}
重定向
- {多列}