ASP.net 2.0 Introduction to Mobile development usage style

Source: Internet
Author: User

Each ASP.net mobile control provides a number of style properties that you can use to customize how the control is rendered. Of course, you can also use the Stylesheet control to define style information, and then apply the style information defined by the Stylesheet control on different controls on the same page. We mentioned earlier that you not only can apply styles to different controls, you can also apply them to container controls. This ensures that the mobile controls in the container control all have a consistent user experience.

The stylesheet control should be placed on the page, not in the container control. In fact, this is the only one by one Web mobile controls that can be placed outside a container control. For all pages and mobile controls, We can define only one stylesheet control. After you have added a Stylesheet control, you can define the corresponding style properties by opening the style editor.

To create, customize, and apply a Stylesheet control on a mobile Web page, we can set the following steps:

1. Drag a Stylesheet control onto the mobile Web page.

2. Right-click the Stylesheet control and select the "Modular Options" command in the pop-up menu. A "Modular Options" dialog box appears, as shown in the following illustration. This dialog box allows you to create and edit multiple styles and device filters, which are described in detail in the later sections.

3. Clicking the Edit button will open a Style editor window, as shown in the following illustration. This window enables developers to create multiple styles based on actual requirements.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.