<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>二维码</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="keywords" content="" />
<meta name="description" content="" />
<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="static/js/jquery-1.9.1.min.js"></script>
<style>
#picbox{width:100%;height:100%;}
#picbox img{width:250px;height:250px;}
</style>
<script>
function setCenter(Xelement)
{
var parent=Xelement.parentNode;
parent.style.position="absolute";
Xelement.style.position="absolute";
var left=(parent.clientWidth-Xelement.clientWidth)/2;
var top=(parent.clientHeight-Xelement.clientHeight)/2;
Xelement.style.left=left+"px";
Xelement.style.top=top+"px";
}
</script>
</head>
<body style="background:#666;">
<div id="picbox">
<img src="static/zdcg/images/erweima.jpg" οnlοad="setCenter(this)"/>
</div>
</body>
</html>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>二维码</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="keywords" content="" />
<meta name="description" content="" />
<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="static/js/jquery-1.9.1.min.js"></script>
<style>
#picbox{width:100%;height:100%;}
#picbox img{width:250px;height:250px;}
</style>
<script>
function setCenter(Xelement)
{
var parent=Xelement.parentNode;
parent.style.position="absolute";
Xelement.style.position="absolute";
var left=(parent.clientWidth-Xelement.clientWidth)/2;
var top=(parent.clientHeight-Xelement.clientHeight)/2;
Xelement.style.left=left+"px";
Xelement.style.top=top+"px";
}
</script>
</head>
<body style="background:#666;">
<div id="picbox">
<img src="static/zdcg/images/erweima.jpg" οnlοad="setCenter(this)"/>
</div>
</body>
</html>