Summary of problems arising after Appcan packing

Source: Internet
Author: User

Appcan-based projects, which eventually need to be packaged and debugged. In the debugging process, the main style problems on the Apple phone, the following to summarize these questions to prevent the next time.

1:ios more than 7 of mobile phones, the status bar overlaps with the content:

Problem Description: In the IOS7 system above the mobile phone, we will find that the status bar is very small, resulting in overlapping with the content page. The lower version of the iOS system phone does not have this problem, the Android phone does not produce this problem, so we need to determine the type of device in JS, and then add a distance to the status bar.

Workaround: We add the following code in JS, and add this style to the CSS:

iOS status bar Adaptation window.uexonload = function (type) {    var ios7style=uexwidgetone.ios7style;    var isfullscreen = Uexwidgetone.isfullscreen;    if (Ios7style = = ' 1 ' && isfullscreen! = ' 1 ') {     $ ("body"). AddClass ("Uh_ios7");}    }
. Uh_ios7. uh,.uh_ios7{    padding:2em 0 0;}

2: Set the apple hand status bar color

On the page, we only need to add a background color to the body, and the background color of the status bar will change accordingly with the body background color.

3: In some Apple phone slices do not show

Possible cause: the height of the parent element or ancestor element of the picture element is 0, resulting in a non-display.

WORKAROUND: Delete the parent element or ancestor element with a height of 0 directly.

Summary of problems arising after Appcan packing

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.