私はiPhone Web開発者にとって非常に新しいものです。Safari Web Content Guide を読むことから始めました。次に、サファリのアドレスバーなどのユーザーインターフェイスを非表示にできることを発見しました。そのため、私はインストラクターに従いました。結果は私が期待したものではありません。アドレスバーは引き続き表示されます。
このメタタグをhtmlファイルに入れました。
これは私のコードです
<head>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Hello iPhone Web App</title>
<style type="text/css">
form{
width:100%;
}
#searchBox{
font-size:25px;
width:50%;
}
#send{
font-size:25px;
}
#containerTop{
text-align:center;
width:100%;
}
</style>
</head>
<body>
<form method="get">
<div id="containerTop">
<input type="text" id="searchBox" name="search" autocapitalize="off" size="15" maxlength="128" />
<input type="submit" id="send" value="ค้นหา" />
</div>
</form>
</body>
私はあなたの返事を楽しみにしています、ありがとう