PHP程序员站--PHP编程开发平台
 当前位置:主页 >> WAP技术 >> wap教程 >> 

WML标签速查手册

WML标签速查手册

来源:互联网  作者:  发布时间:2010-02-01
wml标签列表,列出来常用的标签和属性值,推荐大家收藏 结构相

wml标签列表,列出来常用的标签和属性值,推荐大家收藏

结构相关标签 语法及属性
<wml>
<wml xml:lang="lang" >
   content
</wml>
<card>
<card id="name"
  title="label"


  newcontext="boolean"
  style="style"
  onenterforward="url"
  onenterbackward="url"
  ontimer="url" >
content
</card>
<template>
<template onenterforward="url"
  onenterbackward="url"

  ontimer="url" >
content
</template>
<head>
<head>
content
</head>
<access>
<access domain="domain"
  path="path" />
<meta>


<meta name="name"|http-equiv="name"
  content="value"
  forua="true | false" />


任务相关标签 语法及属性
<timer>
<timer name="variable"
  value="value" />
<setvar>
<setvar name="name"
  value="value" />
<anchor>

<a>
<a title="label" >
task
text
</a>
<do>
<do type="type"
  label="label"
  name="name"
  optional="boolean" >

task
</do>
<onevent>
<onevent type="type" >
task
</onevent>
<go>
<go href="url"
  sendreferer="boolean"
  method="method"
  accept-charset="charset"
content
</go>
<prev>
<prev>
content
</prev>
<noop>


<noop/>
<refresh>
<refresh>
content
</refresh>


控件相关标签 语法及属性
<input>
<input name="variable"
  title="label"
  type="type"
  value="value"
  default="default"
  format="specifier"
  emptyok="boolean"
  size="n"
  maxlength="n"
  tabindex="n" />
<select>
<select title="label"
  multiple="boolean"
  name="variable"
  default="default"
  iname="index_var"


  ivalue="default"
  tabindex="n" >
content
</select>
<option>
<option title="label"
  value="value"
  onpick="url" >
content
</option>
<optgroup>
<optgroup title="label" >

content
</optgroup>
<fieldset>
<fieldset title="label">
content
</fieldset>
输出效果标签 语法及属性
<img>
<img alt="text"
  src="url"
  localsrc="icon"
  align="alignment"
  height="n"
  width="n"
  vspace="n"
  hspace="n" />
<table>
<table align="alignment"
  title="label"


  columns="n"/>
<td>
<td>content</td>
<tr>
<tr>
<td>content</td>
</tr>
<b>
<b>
text
</b>
<big>
<big>
text
</big>
<br>
<br/>
<em>
<em>
text
</em>
<i>
<i>
text
</i>
<p>
<p align="alignment"


  mode="wrapmode" />
<small>
<small>
text
</small>
<strong>
<strong>
text
</strong>
<u>
<u>
text
</u>


特殊字符  
&lt;

< (less than)

&gt;

> (greater than)

&apos;

' (apostrophe)

&quot;

" (quote)

&amp;

& (ampersand)

$$

$ (dollar sign)

&nbsp;

Non-breaking space

&shy;

Soft hyphen


延伸阅读:
WML教程1:从第一个实际应用全面了解WML
WML教程2:简单介绍关于WML文件的概念WML Decks
WML教程3:任务与导航-赋值与数据交换
WML教程4:跳转和传递参数
WML教程5:任务和任务屏蔽
WML教程6:动作和链接
WML教程7:WML的事件
WML教程8:WML文档结构祥解
WML教程9:Select List 控件
WML教程10:分组选择控件(Optgroup)和复杂实例

WML教程11:文本框控件(Input)
WML教程12:控件组(Fieldset)示例
WML教程13:计时器(timer)示例
WML教程14:WML 文本处理
WML教程15:表格和图形
Tags: wml   wap   标签   手册  
PHP程序员站 Copyright © 2007-2010,PHPERZ.COM All Rights Reserved 粤ICP备07503606号