移動端手動控制頁面高度
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="../css/reset.css"/>
<link rel="stylesheet" href="../css/style.css"/>
<title>安心保</title>
</head>
<body>
<div class="bg_container">
<a class="btn_join" href="input.html">我要加入安心計劃</a>
</div>
<script src="../js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../js/adaptational.js"></script>
<script>
$(function(){
var h=$(window).height();
$(".bg_container").css("height",h);
})
</script>
</body>
</html>
移動端手動控制頁面高度