js实现一个大屏随机抽奖效果代码
代码语言:html
所属分类:其他
代码描述:js实现一个大屏随机抽奖效果代码,可以内定中奖人
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html, body {
padding: 0;
margin: 0;
font-family: 14px;
font-family: "微软雅黑";
}
.ce-pack-end {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-box-pack: center;
position: absolute;
top: 0;
left: 0;
}
.luck-back {
background-size: cover;
background-position: top center;
position: absolute;
height: 100%;
width: 100%;
color: #fff;
background-color: #E76345;
}
.luck-content {
position: absolute;
top: 20%;
bottom: 20%;
left: 20%;
right: 20%;
background: rgba(0,0,0,.6);
padding: 20px;
border-radius: 5px;
padding-right: 260px;
}
.luck-user {
position: absolute;
right: 20px;
top: 20px;
bottom: 20px;
width: 240px;
background-color: rgba(255,255,255,.2);
border-radius: 5px;
}
.luck-user-list {
list-style-type: none;
padding: 0 20px;
margin: 0;
overflow-y: scroll;
position: absolute;
top: 50px;
bottom: 70px;
width: 100%;
}
.luck-user-list>li {
margin-top: 10px;
position: relative;
}
.luck-user-list>li div.portrait {
height: 30px;
width: 30px;
border-radius: 5px;
background-position: center;
background-size: cover;
}
.luckuserName {
line-height: 30px;
position: absolute;
top: 0;
left: 40px;
right: 0;
}
.luck-user-title {
position: absolute;
width: 90%;
display: block;
text-align: center;
line-height: 40px;
left: 5%;
color: #f5b43a;
font-weight: bold;
}
.luck.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0