Wml-tables
提供:Dev Guides
WML-テーブル
<tr>および<td>とともに<table>要素を使用して、WMLでテーブルを作成します。 WMLはテーブルのネストを許可しません
<table>エレメントは、<p> … </p>エレメントと一緒に配置する必要があります。
<table/>要素は、次の属性をサポートしています。
Attribute | Value | Description |
---|---|---|
columns | number | Sets the number of columns in the table |
align |
a |
列の水平方向のテキスト配置を指定するには、align属性に3文字を割り当てる必要があります。 各文字は、列の水平方向のテキスト配置を表します。 文字はL、C、またはRのいずれかです。 たとえば、次の設定をテーブルに適用する場合:
次に、_align_属性の値をLCRに設定する必要があります。 |
xml:lang | language_code | Sets the language used in the element |
class | class data | Sets a class name for the element. |
id | element ID | A unique ID for the element. |
以下は、<table>要素の使用方法を示す例です。
これにより、次の結果が生成されます。