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