当前位置: 首页 > 网络学院 > XML相关教程 > WAP > <access>

WAP
WAP 介绍
WAP 基础知识
WML 格式化
WML 链接
WML Input
WML 任务
WML 计时器
WML 变量
WML 实例
Validate WML
WML 参考
WML 字符实体
WML DTD

WAP 中的 <access>


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 205 ::
收藏到网摘: n/a

The <access> tag defines information about the access control of a WML deck.
<access>标签定义了关于WML平台控制访问信息。

Note: If the <access> tag is not set, any other decks/cards can access the deck.
注意:如果<access>标签未被设置,那么其它平台/卡片都可以访问这个平台。

Note: The <access> tag always goes inside the <head> tag. Each deck can have only one <access> tag.
注意:<access>标签总是写在<head>标签内的。每个平台都可以包含一个<access>标签。

Syntax
语法

<head>
<access/>
</head>

Attributes
属性

属性 描述
domain cdata The URL of other decks that can access cards in the deck 
指定用于访问平台内卡片的其它平台的URL
path cdata The URL of other decks that can access cards in the deck 
指定用于访问平台内卡片的其它平台的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
案例

Access is limited to other decks/cards in www.ruanchen.com:
仅限于访问www.ruanchen.com中的其它平台/卡片。

<head> <access domain="www.ruanchen.com"/>
</head>

Access is limited to other decks/cards in www.ruanchen.com/tech/school/wap:

<head> <access domain="www.ruanchen.com" path="/wap"/>
</head>

评论 (0) All

登陆 | 还没注册?