Wap development experience

Source: Internet
Author: User

Note: Unless otherwise specified, only the mobile MISC platform is supported.
1. Exercise caution when using the table.
Before a page is displayed, You need to draw the Screen Content of the mobile phone according to the table definition. This section provides a simple and slow page speed and should try to reduce the number of tables as much as possible.
2. When using the label, it is best to define the width and length of the image. In this way, the image location is reserved according to the length and width of the image before the entire page is displayed to accelerate the display of other text content.
3. Some mobile phones support CSS
4. Some mobile phones support page background music
5. Some mobile phones support Image Upload.
6. When using a table, match the table width on the mobile phone terminal for better display.
1) MIME types supported by Wap browsers
Text/css
Image/gif
Image/jpeg
Audio/midi
Application/vnd.wap.xhtml + xml
Text/html

2) introduce the changes brought about by XHTML:
1. marquee
<Marquee> links, text content, or images </marquee>
Attribute:
Loop = "100"
Direction = "right" or "left"
Behavior = "scroll" or "alternate"
Scrollamount = "10"
Bgcolor = "# aaaaee"

2. text color
<Font color = 'Blue '> text </font>
Css file content:
A: link
{Color: #000000}

3. animation display
Apply to background and foreground images
Body
{
Background-image: url (/Images/bg.gif );
}
Image Size adaptation
The image size on the entire page is less than 30 KB
Recommended 20 k
4. Form
Input box
<Input type = "text" width = "120" value = "hello">
Single region
<Input type = "radio" value = "1"> Beijing
Multiple selection box
<Input type = "checkbox" value = "1"> Beijing
Drop-down list
<Form> <select id = "province"> <option value = "0"> Beijing </option> <option value = "1">
Sea </option> </select>
</Form>
5. Table-supported tables
Supports table, tr, and td
6. Background Color and background image
Background Color
<Body bgcolor = "# e0e0e0">
CSS:
Body {background: red}
Background Image

<Table background = "Images/bg.gif">
CSS:
Body
{Background-image: url (Images/bg.gif );}
7. Background Music
<BGSOUND src = 'midi/hy. mid 'loop ='-1'>

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.