微信自适应页面

<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8"/>
    <meta HTTP-EQUIV="pragma" CONTENT="no-cache">
    <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <meta HTTP-EQUIV="expires" CONTENT="0">
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <meta name="apple-touch-fullscreen" content="yes"/>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta http-equiv="Expires" content="-1"/>
    <meta http-equiv="pragram" content="no-cache"/>
    <link rel="stylesheet" href="/static/boot/css/bootstrap.css">
    <link rel="stylesheet" href="/static/bin/css/coupon.css">
    <script src="/static/jquery/jquery-1.11.1.min.js"></script>
    <script src="/static/jquery/plugin/jquery.json.min.js"></script>
    <title>优惠券生成</title>
    <style type="text/css">
        html,body{
            font-family: Microsoft YaHei;
            font-size: 12px;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
    </style>
    <script type="text/javascript">

        if(/Android (\d+\.\d+)/.test(navigator.userAgent)){
            var version = parseFloat(RegExp.$1);
            if(version>2.3){
                var phoneScale = parseInt(window.screen.width)/640;
                document.write('<meta name="viewport" content="width=640, minimum-scale = '+ phoneScale +', maximum-scale = '+ phoneScale +', target-densitydpi=device-dpi">');
            }else{
                document.write('<meta name="viewport" content="width=640, target-densitydpi=device-dpi">');
            }
        }else{
            document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
        }
        //微信去掉下方刷新栏
        if(navigator.userAgent.indexOf('MicroMessenger') >= 0){
            document.addEventListener('WeixinJSBridgeReady', function() {
                WeixinJSBridge.call('hideToolbar');
            });
        }
        $(function(){
            $(".buttonDiv div").on("click", function (e) {
                window.location = $(this).data("url");
            });
        });

    </script>
</head>
<body class=" bg-gray" style="height: 100%">
<div class="row parentDiv no-padding bg-black" style="height: 100%">
    <div class="col-md-12 buttonDiv no-padding" style="height: 15%">
        <div class="col-md-12 no-padding" style="text-align: center; vertical-align: middle; height: 50%; line-height: 600%; background: #E44833 "><span style="font-size: 35px; color: white">请选择功能</span></div>
        <div class="col-md-12 no-padding" style="text-align: center; vertical-align: middle; height: 50%; ; line-height: 600%">
            <span style="font-size: 25px; color: white">已发送${couponCountAll}张优惠券,使用${couponCountUsed}张,共${totalAmount}</span>
        </div>
    </div>

    <div class="col-md-12 buttonDiv no-padding" style="height: 85%">
        <div class="col-md-12 label-item"
             style="text-align: center; vertical-align: middle; height: 50%; line-height: 2000%; background: #46b8da;"
             data-url="${pageContext.request.contextPath}/coupon/coupon_generate.html">
             <span style="font-size: 60px; color: white">优惠券生成</span>
        </div>
        <div class="col-md-12 label-item" style="text-align: center; height: 50%; line-height: 2000%; background: #fd7a40;"
             data-url="${pageContext.request.contextPath}/coupon/coupon_check.html">
             <span style="font-size: 60px; color: white">优惠券核销</span>
        </div>
    </div>
</div>

</body>

</html>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值