Curl
 

Menu
 Chapter.1
 Chapter.2
 Chapter.3
 Chapter.4
 Chapter.5
 Chapter.6
 Chapter.7
 Chapter.8
 Chapter.9
 Chapter.10
 
 
■Tableのセル内でのオブジェクトの配置

セル内のオブジェクトの配置も、valignhalignキーワードを使用することによって簡単に調整できます。

valignキーワードは、セル内のオブジェクトの垂直方向の配置を決定します。
valignに設定できる有効な値には、top、center、right、origin があります。
halignキーワードは、セル内のオブジェクトの水平方向の配置を決定します。
halignに設定できる有効な値には、left、center、right、origin があります。
例えば下記のリストを実行すると図のような表が生成されます。

【Tableのセル内でのオブジェクトの配置】
{curl 6.0 applet}
{curl-file-attributes character-encoding = "shift-jis"}
{Table
cell-border-color= "black",cell-border-width=1pt,
width=8cm, height=4cm,
{column-prototype
{cell-prototype valign="top",halign="left",{text top-left}},
{cell-prototype valign="top",halign="center",{text top-center}},
{cell-prototype valign="top",halign="right",{text top-right}}
},
{column-prototype
{cell-prototype valign="center",halign="left",{text center-left}},
{cell-prototype valign="center",halign="center",{text center-center}},
{cell-prototype valign="center",halign="right",{text center-right}}
},
{column-prototype
{cell-prototype valign="bottom",halign="left",{text bottom-left}},
{cell-prototype valign="bottom",halign="center",{text bottom-center}},
{cell-prototype valign="bottom",halign="right",{text bottom-right}}
}
}


Chapter.7(Part.1)へ戻る
Chapter.7(Part.3)へ進む