Mobile-developed pit "continuously updated ..."

Source: Internet
Author: User

Now everyone is basically using a smart phone, seemingly mobile phone browser is also relatively advanced, but also basically webkit kernel, at first blush, as if to see the hope ... However, the mobile side of the pit is not less than IE, and because debugging is not as convenient as the PC, seemingly more difficult ...

Briefly summarize a few of their own in the usual development encountered relatively shallow pits, first pre-preheating.

An Android phone overlay area highlighting: This is the name of the person I see on the Internet, the performance is a click when a shadow, the function of no obstruction, is not good-looking;

Solution: {-webkit-tap-highlight-color:rgba (0,0,0,0)};

The second part of the browser does not automatically play audio: This part seems to be alluding to the Apple device (stealing laughter ...). , no way, others are user experience good, afraid you harass users;

Solution: You can capture any action of the user, and then manually trigger the media playback events;

Three-part browser does not support local scrolling: scrolling events on the mobile side have always felt so difficult ah ...

Solution: 1 Use the layout, set the body to scroll, other elements misplaced display; I'm so embarrassed ... )

2 use of third-party iscroll, this is my usual solution;

Four weird input hover box: the input box of the test Type=password type will have an additional input box hovering next to the original input;

Solution: Use the Type=text input box instead of the password type, and then set the style {-webkit-text-security:disc;} Hide input password;

(discover that the wisdom of Man is infinite.)

Temporarily on these, mobile project although has been doing, wading is not so deep, so temporarily did not fall into which abyss ... Sincerely thank the previous pits predecessors!

Mobile-developed pit "continuously updated ..."

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.