网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: WAP :: WML < card > 标签

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

WML < card > 标签


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-29 浏览:809 :: ::

A WML deck contains one or more cards. The <card> tag defines a card. A card can contain text, markup, links, input-fields, tasks, images and more.
WML平台包含一个或多个卡片。<card>标签定义了一张卡片。一张卡片中包含文本、标记、连接、输入框、任务、图片等等。

Note: The "id" attribute of the card element can be used as an anchor.
注意:卡片的“id”属性可以作为“锚”来使用。

Syntax
语法

<card>
..text..
..links..
..images..
</card>

Attributes
属性

属性 描述
newcontext true
false
Re-initializes the browser context. Default is "false"
重新初始化浏览器全部内容。默认值是“false”
ordered true
false
Specifies the order of card content. When ordered is set to "true" the browser will display the content in a fixed order. When ordered is set to "false" the users will decide the order as they navigate between content. Default is "true"
指定卡片内容的顺序。当顺序设置为“true”,那么浏览器将以固定的顺序显示内容;如果顺序设置为“false”,那么用户将自行定义浏览内容的顺序。默认值是true
title cdata The title of the card
指定卡片的标题
xml:lang language_code  Sets the language used in the element
设置在元素中使用的语言
onenterbackward url Occurs when the user navigates into a card using a "prev" task
指定浏览前面内容的url
onenterforward url Occurs when the user navigates into a card using a "go" task
指定浏览后面内容的url
ontimer url  Occurs when a "timer" expires
指定当“计时器”过期时产生的url
class cdata Sets a class name for the element. The class name is case sensitive. An element can be connected to multiple classes. Multiple class names within the class attribute are separated by white space
为元素设置一个类名称。类名称是字母大小写不敏感的。一个元素可以被连接到多个类中。类属性中的多个类名称是通过空白符进行分隔的
id id Sets a unique name for the element
为元素设置一个独立的名称

Examples
案例

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="no1" title="Card 1"> 
<p>Hello World!</p>
</card>
<card id="no2" title="Card 2"> 
<p>Welcome to our WAP Tutorial!</p>
</card>
</wml>

评论 (0) All