• Home
  • Blog
  • About Us
  • Contact
Travelerzom
  • Français
  • Italiano
  • English
  • ...
  • Home
  • Blog
  • About Us
Contact



文档图示 模板文档[查看] [编辑] [历史] [清除缓存]
本模板使用了CSS3的多栏布局效果,
支持该效果的浏览器如下表,
不支持的会始终显示单栏但不会混乱
Internet
Explorer
Firefox Safari Google
Chrome
Opera
≤ 9 ≤ 1.0 ≤ 2 无 ≤ 11.0
≥ 10
(2012)
≥ 1.5
(2005)
≥ 3
(2007)
≥ 1
(2008)
≥ 11.1
(2011)

本模板用于在条目中将内容分列呈现出来,不同于 Template:Navbox 这样的导航模板。它基于 Template:Reflist,两者的区别是这里显示的内容需手动输入而不是来自引用来源列表。

用法

[编辑]
{{columns-list|列数| 文字內容(一般為列表) }} 

多列目前只有在Mozilla Firefox和其他基于Gecko的浏览器[1]及Safari 3上才能正确渲染。[2]不过由于此功能包含于CSS3 中,因此以后能适用于更多的浏览器。[3]Internet Explorer目前尚不支持列选择器,IE8中也未计划支持。[4]

若列数省略,则默认为2。

範例

[编辑]
{{columns-list|2| * [[喬治·華盛頓]] * [[約翰·亞當斯]] * [[托馬斯·杰斐遜]] * [[詹姆斯·麥迪遜]] * [[詹姆斯·門羅]] }} 

會渲染成

  • 乔治·华盛顿
  • 约翰·亚当斯
  • 托马斯·杰斐逊
  • 詹姆斯·麦迪逊
  • 詹姆斯·门罗


重定向

[编辑]
  • {{cmn}} 重定向到这里

參見

[编辑]
  • {{div col}}, {{div col end}} 鏈入 討論 編輯
  • {{columns}}
  • {{columns-start}}, {{column}}, {{columns-end}} 鏈入 討論 編輯
  • {{col-begin}} ({{col-start}}), {{col-begin-small}} 鏈入 討論 編輯
    • {{col-2}}
    • {{col-3}}
    • {{col-4}}
    • {{col-5}}
    • {{col-x}}
    • {{col-break}}
  • {{col-end}} ({{end}})
  • {{top}}, {{mid}}, {{bottom}}
  • {{multicol}}, {{multicol-break}}, {{multicol-end}} 鏈入 討論 編輯

參考

[编辑]
  1. ↑ CSS3 Multi-Column Thriller. 2005-12-30 [2006-11-24]. 
  2. ↑ Multi-column layout in Safari 3 and Firefox. [2007-07-25]. 
  3. ↑ CSS3 module: Multi-column layout. W3C. 2005-12-15 [2006-11-24]. 
  4. ↑ CSS Compatibility and Internet Explorer: Multi-column Layout. Microsoft Developer Network. Microsoft. [2009-02-04]. 
上述自Template:Columns-list/doc。 (编辑 | 历史)
编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。
请在/doc子页面中添加分类。 本模板的子页面。


检索自“https://zh.wikivoyage.org/w/index.php?title=Template:Columns-list&oldid=105103”

Explore the world

newyork

United states

New York

Tokyo

Japan

Tokyo

Singapo

Singapore

Singapore

barca

Spain

Barca

2022 © Travelerzom. All rights reserved.

Privacy Policy | Terms of Service