实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html lang="zh-CN">
3
    <head>
4
        <meta charset="utf-8">
5
        <title>jqueryrotate积分抽奖效果演示</title>
6
        <style>
7
            /* 页面 css */
8
            * { margin: 0; padding: 0;}
9
            h1 { width: 900px; margin: 40px auto; font: 32px "Microsoft Yahei"; text-align: center;}
10
            .vad { margin: 50px 0 5px; font-family: Consolas,arial,宋体; text-align:center;}
11
            .vad a { display: inline-block; height: 36px; line-height: 36px; margin: 0 5px; padding: 0 50px; font-size: 14px; text-align:center; color:#eee; text-decoration: none; background-color: #222;}
12
            .vad a:hover { color: #fff; background-color: #000;}
13
            .thead { width: 728px; height: 90px; margin: 0 auto; border-bottom: 40px solid transparent;}
14
            /* demo css */
15
            #dowebok { position: relative; width: 780px; height: 390px; margin: 0 auto; padding: 20px; border: 1px solid #ddd; background: url(/api/jq/5733e375d33d2/images/ly-plate-c.gif) 20px 20px no-repeat;}
16
            .plate { position: relative; float: left; width: 390px; height: 390px; background-image: url(/api/jq/5733e375d33d2/images/lyplate.png);}
17
            .prize { float: right; width: 360px; height: 390px; font: 14px/1.5 "Microsoft Yahei";}
18
            .prize h4 { margin: 80px 0 20px; padding: 10px; background-color: #eee;}
19
            .prize ul { list-style-type: none;}
20
            .prize li { margin: 10px;}
21
            #plateBtn { position: absolute; left: 88px; top: 88px; width: 214px; height: 214px; background-image: url(/api/jq/5733e375d33d2/images/rotate-static.png); text-indent: -9999px; overflow: hidden;}
22
            #result { display: none; position: absolute; left: 65px; top: 155px; width: 300px; height: 120px; background-color: rgba(0,0,0,0.75); filter: alpha(opacity=90);}