WAP之家:为您提供最全最新的WAP技术,CP.SP.3G等行业资讯。 WAP之家交流论坛全新开放 点击进入>>
WAP资讯 | 3G动态 | SP动态 | 运营商动态 | 内容商动态 | 制造商动态 | 论坛讨论>> 每次自动访问
WAP技术 | WAP源码 | 手机编程 | 手机源码 | 无线技术 | J2ME技术 | 手机软件 添加到收藏夹
IVR技术 | SP资料 | SMS MMS技术 | 商业方案 | IVR下载 | 书籍教程 | 工具软件 语言:繁體中文

WAP之家技术文章WAP教程网站教程ASP.NET Mobile Panel Control

ASP.NET Mobile Panel Control
作者:佚名  来源:本站整理  发布时间:2008-3-14 20:45:55

Definition and Usage
定义和用法

The Panel control defines a container for other controls on a mobile page.
面板控件为移动页面的其它控件定义了一个容器。


Properties
属性

Property
属性
Value
Description
描述
Alignment left
center
right
Optional. How to align the panel
可选参数。指定面板的对齐方式
BackColor rgb(x,x,x)
#xxxxxx
colorname
Optional. A background color for the panel
可选参数。指定面板的背景颜色
ForeColor rgb(x,x,x)
#xxxxxx
colorname
Optional. A foreground color for the panel
可选参数。指定面板的前景色
Font-Bold false
true
Optional. Specifies whether or not the text in the panel should be bold
可选参数。指定面板的文本字体是否为粗体显示
Font-Italic false
true
Optional. Specifies whether or not the text in the panel should be italic
可选参数。指定面板的文本字体是否为斜体显示
Font-Name fontname Optional. Specifies the font name of the text in the panel
可选参数。指定面板文本的字体名称
Font-Size normal
small
large
Optional. Specifies the font size of the text in the panel
可选参数。指定面板文本的字体尺寸
id unique_name Optional. A unique id for the control
可选参数。为面板指定一个独立的id
runat "server" Required. Specifies that the control is a server control
必要参数。指定某控件为一个服务器控件
StyleReference name_of_style_element Optional. Specifies a reference to a style to be applied to the control
可选参数。指定一个应用于控件的样式参数
Wrapping wrap
nowrap
Optional. Specifies whether or not the text in the panel should wrap
可选参数。指定面板中的文本是否可以被嵌套

Example 1
案例1

The following example contains one form in an .aspx file. The form contains two Panel controls. The first Panel control has its Font-Bold property set to "true" and the Label controls inside this Panel control will inherit this property. The second Panel control has its ForeColor property set to "red" and the Label controls inside this Panel control will inherit this property:
下面的案例包含了一个 .aspx文件中的表单。该表单包含两个面板控件。第一个面板控件中的Font-Bold属性被设置为“true”,并且面板控件内的标签控件将继承该属性;第二个面板控件中的ForeColor属性被设置为“red”,并且面板控件内的标签控件将继承该属性:

<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" %>

<%@ Register TagPrefix="Mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<Mobile:Form runat="server">
<Mobile:Panel runat="server" Font-Bold="true">

<Mobile:Label runat="server">Audi</Mobile:Label>
<Mobile:Label runat="server">BMW</Mobile:Label>
</Mobile:Panel>
<Mobile:Panel runat="server" ForeColor="red">

<Mobile:Label runat="server">Saab</Mobile:Label>
<Mobile:Label runat="server">Volvo</Mobile:Label>
</Mobile:Panel>
</Mobile:Form>

[] [返回上一页] [打 印]
文章评论

用户名: 查看更多评论

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

         (注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码