0
我被輸入表格卡住了。當我在開發者控制檯中檢查它時,一切正常。但是,當我從我的iphone檢查它改變位置約1-2px。我從相同大小的android手機中檢查它,一切正常。 在開發控制檯中輸入Iphone 5 - http://cs629525.vk.me/v629525181/40c5e/zrdadYwKeBU.jpg。 從我的iphone輸入5s - http://cs629525.vk.me/v629525181/40c57/KjsRhwnjQ4k.jpg。 代碼如下輸入位置無法在iPhone上正確顯示
<form id="subscribe">
<input type="text" class="enter-email" name="subscribe-email" id="subscribe-email" placeholder="YOUR EMAIL" spellcheck="false" />
<button type="submit" id="signup-button" class="signup-button c-form">NOTIFY ME</button>
<label for="subscribe-email" class="subscribe-message c-form"></label>
</form>
<!--css-->
.enter-email {
margin-top: 30px;
margin-left: 17.5%;
width: 40%;
font-size: 16px;
height: 50px;
background: none;
border: 2px solid white;
color: #fff;
text-align: center;
outline: none;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;}
.signup-button {
height: 50px;
border: 2px solid white;
color: white;
text-align: center;
padding: 5px;
font-size: 16px;
width: 25%;
background: #32dbd0;
margin-left: -6px;
transition: all 0.4s ease;}
::-webkit-input-placeholder {
color: #fff;
font-size: 16px;
text-align: center;
padding: 1px; }