Mobile front-end development something that must happen.

Source: Internet
Author: User

1. Clicking on a picture, link, or even a blank box will produce a light blue transparent background and nothing on the PC. How does this work?

Add a line style to the CSS body {-webkit-tap-highlight-color:rgba (0, 0, 0, 0);}

The function is to remove the high bright color, r,g,b, transparency. Attempt to verify valid only on WebKit Core browser

2. Disable tap input to bring up the soft keyboard on your phone

One trick is fatal: Add the readonly attribute of input to it. Heard to use style= "ime-mode:disable", effective, but I did not succeed, do not know what the problem, that is, some people say yes, there must be a reason for it.

Just post it here and make a note.

//扩展 ime-mode :  auto | active | inactive | disabled auto:默认值。不影响ime的状态。与不指定 ime-mode 属性时相同 active:默认值。不影响ime的状态。与不指定 ime-mode 属性时相同 inactive:指定所有不使用ime输入的字符。即激活非本地语言。用户仍可以撤销激活ime disabled:完全禁用ime。对于有焦点的控件(如输入框),用户不可以激活ime 3. Sometimes we need the phone to pop up the numeric keypad, just the type= "tel" of input.

Mobile front-end development something that must happen.

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.