You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
3.2 KiB

3 years ago
  1. <style type="text/css">
  2. .beginIndex{
  3. width: 100%;
  4. height: 100%;
  5. }
  6. .beginIndex p.bgmImg {
  7. width: 100%;
  8. height: 100%;
  9. }
  10. .beginIndex p.bgmImg img {
  11. width: 100%;
  12. height: 100%;
  13. }
  14. .beginIndex .bgmImg{
  15. width: 100%;
  16. height: 100%;
  17. }
  18. .beginIndex .beginBtn img.btn {
  19. position: absolute;
  20. left: 50%;
  21. transform: translateX(-50%);
  22. bottom: 10%;
  23. width: 3.44rem;
  24. height: .83rem;
  25. }
  26. .guiz p.title{
  27. position: absolute;
  28. top: 15%;
  29. right: 5%;
  30. display: flex;
  31. align-items: center;
  32. }
  33. .guiz p.title img{
  34. width: .41rem;
  35. height: .23rem;
  36. }
  37. .guiz p.title span{
  38. color: #fff;
  39. font-size: .26rem;
  40. padding-left: .1rem;
  41. }
  42. /*遮罩*/
  43. .mask{
  44. display: none;
  45. width: 100%;
  46. height: 100%;
  47. position: fixed;
  48. top: 0;
  49. left: 0;
  50. background:url(img/begin.png) no-repeat;
  51. background-size: 100% 100%;
  52. filter: blur(.2rem);
  53. }
  54. /*活动规则*/
  55. .guizBox{
  56. display: none;
  57. position: absolute;
  58. left: 50%;
  59. top: 50%;
  60. transform: translate(-50%,-50%);
  61. z-index: 9999;
  62. }
  63. p.close{
  64. float: right;
  65. width: .546rem;
  66. height: .546rem;
  67. }
  68. p.close img{
  69. width: 100%;
  70. height: 100%;
  71. }
  72. .box_cont{
  73. margin-top: .65rem;
  74. background: url(img/guizeBgm.png) no-repeat;
  75. background-size: 100% 100%;
  76. width: 10.13rem;
  77. height: 5.78rem;
  78. overflow: hidden;
  79. }
  80. .box_cont ul{
  81. width: 8.7rem;
  82. margin: 1.5rem auto 0;
  83. }
  84. .box_cont li{
  85. display: flex;
  86. }
  87. .box_cont li div.contText{
  88. font-size: .28rem;
  89. color: #1F444B;
  90. width: 7.28rem;
  91. line-height: .46rem;
  92. }
  93. .box_cont li p.tips{
  94. color: #30584D;
  95. font-size: .28rem;
  96. font-weight: bold;
  97. }
  98. .box_cont li:nth-child(2){
  99. margin-top: .35rem;
  100. }
  101. .box_cont li:nth-child(3){
  102. margin-top: .4rem;
  103. }
  104. </style>
  105. <div class="beginIndex">
  106. <!--<p class="bgmImg"><img src="img/begin.png" /></p>-->
  107. <!--游戏规则-->
  108. <div class="guiz">
  109. <p class="title">
  110. <img src="img/icon.png"/> <span>查看游戏规则</span>
  111. </p>
  112. <div class="guizBox">
  113. <p class="close"><img src="img/close.png"/></p>
  114. <div class="box_cont">
  115. <ul>
  116. <li>
  117. <p class="tips">活动时间:</p>
  118. <div class="contText">
  119. 2021年X月X日 10:00 — 2021年X月X日 23:59
  120. </div>
  121. </li>
  122. <li>
  123. <p class="tips">活动规则:</p>
  124. <div class="contText">
  125. 每一关均取自于长征中的经典故事,画面中隐藏着该故事中所包含的线索道具,集齐道具即可通关。每一关所需搜集的线索道具数量会在当前闯关界面进行提示。举例:《飞夺泸定桥》需要找到线索道具为“木板”。
  126. </div>
  127. </li>
  128. <li>
  129. <p class="tips">参与方式:</p>
  130. <div class="contText">
  131. 用户可通过微信参与活动。
  132. </div>
  133. </li>
  134. </ul>
  135. </div>
  136. </div>
  137. </div>
  138. <!--开始-->
  139. <div class="beginBtn">
  140. <img class="btn" src="img/beginBtn.png" />
  141. </div>
  142. <div class="mask"></div>
  143. </div>
  144. <script type="text/javascript">
  145. $('.close').click(function(){
  146. $('.mask').fadeOut();
  147. $('.guizBox').fadeOut()
  148. })
  149. $('.title').click(function(){
  150. $('.mask').fadeIn();
  151. $('.guizBox').fadeIn()
  152. })
  153. $('.beginBtn').click(function(){
  154. $('.begin').fadeOut(100)
  155. $('.loading').fadeOut(100)
  156. $('#game1').fadeIn(500)
  157. })
  158. </script>