Chrome を使用して、html-javascript ベースのアプリの検索ボックスを実装しています。
次のようになります。
しかし、iPhone にアプリをデプロイすると、画面は次のようになります。
私はそれがwebkitとの違いであることを知っています。サファリを使用してデバッグすることが解決策になると思いましたが、サファリを使用して開くと、次のようになります。
理由はわかりませんが、iPhone ではそのように見えます。必要な機能に改善するにはどうすればよいですか?
html は次のとおりです。
<div class="form-wrapper">
<input type="text" placeholder="Search here..." required>
<button type="submit">Search</button>
</div>
CSS:
.form-wrapper {
height: 80px;
background: #555;
color: #FFF;
clear: both;
}
.form-wrapper input {
background-color: #FFF;
-moz-box-sizing: border-box;
border-radius: 10px;
border: 5px solid #E5E4E2;
margin: 2px;
height: 40px;
vertical-align: middle;
padding: 20px;
margin-top: 15px;
width: 85%;
}
.form-wrapper button {
overflow: visible;
position: absolute;
float: right;
border: 0;
padding: 0;
cursor: pointer;
height: 40px;
width: 110px;
color: #FFF;
text-transform: uppercase;
background: red;
border-radius: 0 3px 3px 0;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
margin: 20px -116px;
}
.form-wrapper button:before {
content:'';
position: absolute;
border-width: 8px 8px 8px 0;
border-style: solid solid solid none;
border-color: transparent red transparent;
top: 12px;
left: -6px;
}