The Apple phone input box has a shaded line above it and the placeholder color setting of the input box

Source: Internet
Author: User

Today when the mobile phone, use the input box to enter the mobile phone number, but on the Android phone input effect is normal, on the Apple phone, the upper border of input will be thicker, there is a shadow

Because the default for the Apple phone is to add a shadow to input

Adding a code to input solves this problem:

Input {Border:none;Outline:none;-webkit-appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:rgba (0, 0, 0, 0);} after resolving the UI requires the color and size of the placeholder of input, this section uses pseudo-classes:Input::-webkit-input-placeholder {Color:rgb (a);Font-size:0.3rem;}Input::-moz-placeholder {/* Mozilla Firefox 19+ * /Color:rgb (a);Font-size:0.3rem;}Input:-moz-placeholder {/* Mozilla Firefox 4 to * *Color:rgb (a);Font-size:0.3rem;}Input:-ms-input-placeholder {/* Internet Explorer 10-11 * /Color:rgb (a);Font-size:0.3rem;}

The Apple phone input box has a shaded line above it and the placeholder color setting of the input box

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.