最近更新 - 使用說明 - 測試區 - 搜尋:
●獅吼文集
楔子?
佛法入門?
三藏經典?
修持正見?
法義討論?
實修儀軌?
名相淺釋?
佛教X檔案?
學佛心得?
佛教人物?
●其它
暫存區?
工作討論?
編輯選單

連結!pmwiki.org
* Cookbook
* Development
* PmWikiUsers
* SuccessStories

編輯本頁 列印預覽 群組歷史 本頁歷史


Formatting tables

Optional, the first line of the table markup may contain certain table formatting such as border, width, alignment, bgcolor, cellpadding and cellspacing. Width may be specified in percent or in pixels. Colors may be specified either as named colors or HTML codes. Cellpadding is the space between cell contents and the sides of the cell; cellspacing is the space between cells.

Example 1. Changing border and alignment.

This markup:
    
    || border=10 align=center
    || cell 1 || cell 2 || cell 3 ||
    || cell 1 || cell 2 || cell 3 ||

creates this table:

cell 1 cell 2 cell 3
cell 1 cell 2 cell 3

Example 2. Changing color.

This markup:
    
    || border=1 bgcolor=red align=center
    || cell 1 || cell 2 || cell 3 ||
    || cell 1 || cell 2 || cell 3 ||

creates this table:

cell 1 cell 2 cell 3
cell 1 cell 2 cell 3

Example 3. Changing width with percent.

This markup:
    
    || border=1 width=100% bgcolor=yellow
    || cell 1 || cell 2 || cell 3 ||
    || cell 1 || cell 2 || cell 3 ||

creates this table:

cell 1 cell 2 cell 3
cell 1 cell 2 cell 3

Example 4. Changing width with pixels and color with HTML.

This markup:
    
    || border=1 width=350 bgcolor=#cccccc align=center
    || cell 1 || cell 2 || cell 3 ||
    || cell 1 || cell 2 || cell 3 ||

creates this table:

cell 1 cell 2 cell 3
cell 1 cell 2 cell 3

Example 5. Changing cellpadding.

This markup:
    
    || border=1 width=350 cellpadding=10 align=center
    || cell 1 || cell 2 || cell 3 ||
    || cell 1 || cell 2 || cell 3 ||

creates this table:

cell 1 cell 2 cell 3
cell 1 cell 2 cell 3

Example 6. Changing cellspacing.

This markup:
    
    || border=1 width=350 cellspacing=10 align=center
    || cell 1 || cell 2 || cell 3 ||
    || cell 1 || cell 2 || cell 3 ||

creates this table:

cell 1 cell 2 cell 3
cell 1 cell 2 cell 3

<< SimpleTables | PmWiki.DocumentationIndex | AdvancedTables >>
編輯本頁 - 列印預覽 - 群組歷史 - 本頁歷史 - 搜尋
本頁更新於 2004 年 06 月 30 日,01:11 AM