ASP.NET Mobile StyleSheet Control |
|||||||||||||
| 作者:佚名 来源:本站整理 发布时间:2008-3-14 20:47:27 | |||||||||||||
Definition and Usage
|
| Property 属性 |
Value 值 |
Description 描述 |
|---|---|---|
| id | unique_name | Optional. A unique id for the control 可选参数。为控件指定一个独立的id |
| ReferencePath | URL | Optional. Specifies a relative path to an .ascx file that contains a set of style elements 可选参数。指定一个包含一组样式表元素的 .ascx 文件的相对路径 |
| runat | "server" | Required. Specifies that the control is a server control 必要参数。指定该控件为服务器控件 |
Example 1
案例1
The following example is an .aspx page with two labels in a form. Each label has a reference to an internal style. The text in the first label will be displayed in bold and the text in the second label will be displayed in red:
下面这个案例是一个在一张表单内包含两个标签的 .aspx 页面。每个标签都有一个连接到内部样式的参数。第一个标签的文本字体将以粗体形式显示,第二个标签的文本字体将以红色显示:
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage"%> <Mobile:StyleSheet runat="server"> <Mobile:Form id="f1" runat="server"> |
