jquery实现手机端随机数字滚动抽奖效果代码

代码语言:html

所属分类:布局界面

代码描述:jquery实现手机端随机数字滚动抽奖效果代码

代码标签: 随机 数字 滚动 抽奖 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no viewport-fit=cover" />
    <meta charset="utf-8" />
    <style>
        @charset "utf-8";
/* CSS Document */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, dd, dl, dt, li, ol, ul,input,select,button,textarea,tr,td{ padding:0; margin:0; border:none;}
input,button,select,textarea,a,img{outline:none; }
::-moz-focus-inner{border:0px;}
body,html{ 
    width:100%;
    height: 100%;
    min-width: 320px;
    max-width: 640px; 
    font-family:"Microsoft YaHei","Arial", "SimSun";
}
html { font-size : 20px; }
@media only screen and (max-width: 310px) and (min-width: 300px) {
    html { font-size: 20px !important;}
    .dataNums .dataOne{width: 0.93rem !important;}
    .dataNums .tt span{font-size: 1.8rem !important;}
}
@media only screen and (max-width: 320px) and (min-width: 310px) {html { 
    font-size: 20px !important; }
    .dataNums .dataOne{width: 0.93rem !important;}
    .dataNums .tt span{font-size: 1.8rem !important;}
}
/*Note3*/
@media only screen and (min-width: 360px) {html { font-size: 22px !important; }}
/*iPhone6*/
@media only screen and (min-width: 376px) {html { font-size: 23px !important; }}
/*iPhone6 plus*/
@media only screen and (min-width: 414px) {html { font-size: 24px !important; }}
/*big Resolution*/
@media only screen and (min-width: 641px) {html { font-size: 25px !important; }}
ul, ul li, ol li, li {	list-style:none;}
a, img, input, textarea {border:none;}
a {
    text-decoration: none;
}
table {	border-collapse: collapse;border-spacing:0;}
.clearfix:after {visibility: hidden;display: block;font-size: 0;content: ".";clear: both;height: 0;}
* html .clearfix {zoom: 1;}
*:first-child + html .clearfix {zoom: 1;}
.fl {	float:left;}
.fr {	float:right;}
.none{	display:none;}

.inrow{font-size:0;[;font-size:12px;];*font-size:0;font-family:arial;[;letter-spacing:-3px;];*letter-spacing:normal;*word-spacing:-1px;}
.inrow>li,.inrow span{
    display:inline-block;
    *display:inline;
    *zoom:1;
    font-size:14px;
    letter-spacing:normal;
    word-spacing:normal; 
}
.dataNums{
    position: absolute;
    top: 37%;
    display: block;
    width: 100%;
    height: 45px;
    text-align: center;
}
.dataNums .dataOne{ 
    width: 1rem;
    height: 2rem;
    padding: 0px 0.1rem;
    text-align: center;
}
.dataNums .dataBoc {
    position: relative; 
    width: 100%; 
    height: 100%; 
    overflow: hidden;
}
.dataNums .dataBoc .tt {
    position: absolute; 
    top: 0;  
    left: 0;
    width: 100%;  
    height: 100%;}
.dataNums .tt span{
    width: 100%;
    height: 100%;
    font-size: 1.9rem;
    font-weight: 500;
    color: #D4171A;
}
 #dataNums{
    width: 100%;
    height: 100%;
    background: url(//repo.bfw.wiki/bfwrepo/image/60cd7b65e9f43.png) no-repeat;
    background-size: 100% 100%;
}
.openLottery{
    position: absolute;
    top: 56%;
    width: 130px;
    margin: 0 auto;
    height: 55px;
    left: calc((100% - 130px)/2);
}
.disable {
    pointer-events: none;
}
.regulation{
            position: fixed;
            top: 77%;
            text-align: center;
            width: 100%;
        }
        .regulation .item{
            margin: 0 auto;
            width: 48%;
            height: 30px;
            line-height: 30px;
            background: #D4171A;
            color: #fff;
            border-radius: 40px;
            font-size: 0.72rem;
            position: relative;
        }
        .regulation .item::after{
            content: '';
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 100%;
            background: #fff;
            right: 6px;
            top: 11px;
        }
        .regulation .item::before{
            content: '';
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 100%;
            background: #fff;
            left: 6px;
            top: 11px;
        }
        .record{
            position: fixed;
            width: 100%;
            top: 82%;
            text-align: center;
        }
        .record .item{
            height: 40px;
            line-height: 40px;
            color: #333333;
            font-size: 0.72rem;
            width: 50%;
            margin: 0 auto;
        }
    </style>
<script type="text/javascript" src="/.........完整代码请登录后点击上方下载按钮下载查看

网友评论0