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