猜拳游戏html,JavaScript中实现猜拳小游戏

  • Post author:
  • Post category:java


页面布局

html{

font-size: 125%;

margin: 0rem;

}

.wap-main{

background: -webkit-linear-gradient(right,#7e2b9a,#ac3e34); /*safari 5.1 to 6.0*/

background: -o-linear-gradient(right,#7e2b9a,#ac3e34); /*opera 11.1 to 12.0*/

background: -moz-linear-gradient(right,#7e2b9a,#ac3e34);/*firefox 3.6 to 15*/

background: linear-gradient(to right,#7e2b9a,#ac3e34);/*#7e2b9a,#ac3e34*/

height: 32rem;

}

/*动画猜拳区域*/

.game-content{

position: fixed;

background: url(img/bg_ring@2x.png)no-repeat center/contain;

width: 13.36rem;

height: 16.64rem;

left: 50%;

margin-left: -6.68rem;

top: 2.56rem;

}

.list1{

position: absolute;

width: 7.2rem;

height: 4.2rem;

background: url(img/bg-round1.png)no-repeat center/contain;

left: 50%;

margin-left: -3.34rem;

top: 4.5rem;

}

.list2{

position: absolute;

width: 7.2rem;

height: 3.2rem;

background: url(img/countdown_ready@2x.png)no-repeat center/contain;

left: 50%;

margin-left: -3.34rem;

top: 8.5rem;

}

.list3{

position: absolute;

width: 6.2rem;

height: 2.0rem;

background: url(img/tip_choosegesture@2x.png)no-repeat center/contain;

left: 50%;

ma