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

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

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

WML < access > 标签


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

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.w3pop.com:
仅限于访问www.w3pop.com中的其它平台/卡片。

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

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

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

评论 (0) All