ASP.NET Mobile Panel Control[转]
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" %> <Mobile:Form runat="server"> |
浙公网安备 33010602011771号