📜  WML-表格

📅  最后修改于: 2020-10-28 05:40:26             🧑  作者: Mango


元素与和
一起用于在WML中创建表。 WML不允许嵌套表格

元素应与

元素一起放入。

元素支持以下属性:

Attribute Value Description
columns number Sets the number of columns in the table
align
  • L
  • C
  • R
To specify the horizontal text alignment of the columns, you need to assign three letters to the align attribute. Each letter represents the horizontal text alignment of a column. The letter can be L, C, or R. For example, if you want the following settings to be applied to your table:
  • First table column — Left-aligned

  • Second table column — Center-aligned

  • Third table column — Right-aligned

Then you should set the value of the align attribute to 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.

以下是显示

元素用法的示例。







Col 1 Col 2 Col 3
A B C
D E F

这将产生以下结果:

WAP示例5