jQuery手机九宫格抽奖代码

2025-05-09 06:11:07

1、新建html文档。

jQuery手机九宫格抽奖代码jQuery手机九宫格抽奖代码

4、书写css代码。body { background-image: url(../img/bg-img.png); background-repeat: no-repeat; background-size: 100% 100%; width: 7.5rem; height: 9.7rem; padding-top: 3.6rem; }body:after { position: relative; }* { margin: 0; padding: 0; }.shanDeng { width: 100%; background-size: 100%; background-repeat: no-repeat; margin-bottom: .15rem;}#btn .cjBtn, .shanDeng .active, .shanDeng td { width: 1.74rem; height: 1.48rem; background-repeat: no-repeat; }#btn.cjBtn { background-image: url(../img/cjBtn.png); background-size: 100% 100%; }#btn.cjBtnDom { background-image: url(../img/buttonDown.png); }#luck .active { background-image: url(../img/active.png); }.shanDeng td { text-align: center; background-image: url(../img/proBj.png); background-size: 100% 100%; }.shanDeng table { margin: 0 auto; }.rule { margin: 0 auto; background-color: #E84A54; width: 4.3rem; height: 2.3rem; padding: 0 .4rem;}.rule p { font-size: 26px; color: #fff; line-height: .38rem;}.rule p:first-child { text-align: center; font-size: 32px; line-height: .6rem;}.play { position: absolute; top: 4%; width: 100%; height: .42rem; line-height: .42rem;background-color: #FFEAB2; }.play .div { height: 100%; margin-left: .7rem;border-left: 2px solid #E84A54; }.play span { background: url("../img/icon-laba.png") no-repeat; background-size: 100%; position: absolute; top: 50%; transform: translateY(-50%); height: .26rem;width: .3rem; margin: 0 .2rem;}

jQuery手机九宫格抽奖代码

6、在head标签中加入meta声明<meta name="apple-mobile-web-app-capable" content="yes">

jQuery手机九宫格抽奖代码

8、查看效果。

jQuery手机九宫格抽奖代码
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢