HTML部分
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<script src="js/fontSize.js"></script>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/signIn.js"></script>
<link rel="stylesheet" href="css/reset.css"/>
<link rel="stylesheet" href="css/signIn.css"/>
</head>
<body>
<div class="wrap">
<div class="checkin">
</div>
<div class="mask">
<div class="modal">
<a href="#" class="closeBtn">×</a>
<h1 class="title_h1 clearfix"><span></span><em>已签到</em> <i>您已签到3天</i></h1>
<h2 class="title_h2">您获得现金<span>2元</span></h2>
</div>
</div>
<div class="rules">
<h3>签到规则说明</h3>
<p>1.每日签到得奖励,连续签到七天得现金券</p>
<p>2.签到现金券仅限本商家使用</p>
<p>3.连续签到不足七天时,将签到奖励清零重新计算</p>
</div>
</div>
<script type="text/javascript">
// 插件调用
$(".checkin").Checkin();
// 元素居中显示,与插件无关,根据自己需要修改;
// $(".checkin").css('marginTop',parseInt(($(window).innerHeight()-$(".checkin").outerHeight())/2)+'px');
</script>
</body>
</html>
css部分
*{margin:0;padding:0;font:14px/1.8 "Helvetica Neue","microsoft yahei";}
body{background: #FFE8A1; }
.wrap{
width: 100%;
border-top: 1px solid transparent;
}
.checkin{
width: 90%;
margin: auto auto 0.3rem auto;
}
.clear {
clear:both;
height:0;
overflow:hidden;
display:block;
line-height:0;
}
.clearfix:after {
clear:both;font-size:0;
height:0;