index.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. html, body {
  2. margin: 0px;
  3. padding: 0px;
  4. width: 100%;
  5. height: 100%;
  6. overflow: hidden;
  7. background: #E1F5FC;
  8. -webkit-text-size-adjust: 100%;
  9. font-family: 'Microsoft YaHei',SimHei;
  10. }
  11. body {
  12. background-image: url(../content/images/background.jpg);
  13. background-repeat: repeat-x;
  14. background-position: center bottom;
  15. background-size: cover;
  16. -moz-user-select: none; /*火狐*/
  17. -webkit-user-select: none; /*webkit浏览器*/
  18. -ms-user-select: none; /*IE10*/
  19. -khtml-user-select: none; /*早期浏览器*/
  20. user-select: none;
  21. }
  22. input {
  23. outline: none;
  24. }
  25. a, button, div {
  26. outline: none;
  27. -webkit-user-select: none;
  28. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  29. -webkit-appearance: none;
  30. }
  31. ul, li {
  32. list-style: none;
  33. margin: 0px;
  34. padding: 0px;
  35. }
  36. div, span {
  37. -moz-user-select: none; /*火狐*/
  38. -webkit-user-select: none; /*webkit浏览器*/
  39. -ms-user-select: none; /*IE10*/
  40. -khtml-user-select: none; /*早期浏览器*/
  41. user-select: none;
  42. }
  43. canvas {
  44. -webkit-transform: translateZ(0);
  45. }
  46. #leftController {
  47. position: absolute;
  48. left: 0px;
  49. top: 0px;
  50. width: 50%;
  51. height: 100%;
  52. z-index: 999;
  53. display: none;
  54. }
  55. #rightController {
  56. position: absolute;
  57. right: 0px;
  58. top: 0px;
  59. width: 50%;
  60. height: 100%;
  61. z-index: 999;
  62. display: none;
  63. }
  64. #leftController div, #rightController div {
  65. position: absolute;
  66. left: 0px;
  67. top: 0px;
  68. width: 100%;
  69. height: 100%;
  70. background-position: center center;
  71. background-repeat: no-repeat;
  72. opacity: 0;
  73. animation: tipsImageAnimation 5s;
  74. -moz-animation: tipsImageAnimation 5s; /* Firefox */
  75. -webkit-animation: tipsImageAnimation 5s; /* Safari 和 Chrome */
  76. -o-animation: tipsImageAnimation 5s; /* Opera */
  77. }
  78. #leftController div {
  79. background-image: url(../content/images/arrowLeft.png);
  80. }
  81. #rightController div {
  82. background-image: url(../content/images/arrowRight.png);
  83. }
  84. @keyframes tipsImageAnimation {
  85. 0% {
  86. opacity: 1;
  87. }
  88. 99% {
  89. opacity: 0;
  90. }
  91. 100% {
  92. display: none;
  93. }
  94. }
  95. @-moz-keyframes tipsImageAnimation {
  96. 0% {
  97. opacity: 1;
  98. }
  99. 99% {
  100. opacity: 0;
  101. }
  102. 100% {
  103. display: none;
  104. }
  105. }
  106. @-webkit-keyframes tipsImageAnimation {
  107. 0% {
  108. opacity: 1;
  109. }
  110. 99% {
  111. opacity: 0;
  112. }
  113. 100% {
  114. display: none;
  115. }
  116. }
  117. #playingScreen {
  118. position: absolute;
  119. left: 0px;
  120. top: 0px;
  121. width: 640px;
  122. height: 100px;
  123. display: none;
  124. z-index: 100;
  125. }
  126. #score {
  127. position: absolute;
  128. right: 20px;
  129. top: 20px;
  130. text-align: right;
  131. padding-right: 5px;
  132. color: #fff;
  133. font-size: 30px;
  134. font-weight: bold;
  135. text-shadow: -2px 0px 5px #4f5e63,2px 0px 5px #4f5e63,0px -2px 5px #4f5e63,0px 4px 5px #4f5e63;
  136. -moz-user-select: none; /*火狐*/
  137. -webkit-user-select: none; /*webkit浏览器*/
  138. -ms-user-select: none; /*IE10*/
  139. -khtml-user-select: none; /*早期浏览器*/
  140. user-select: none;
  141. }
  142. #startScreen {
  143. position: absolute;
  144. left: 0px;
  145. top: 0px;
  146. width: 640px;
  147. height: 1136px;
  148. display: none;
  149. }
  150. #startScreen .title {
  151. position: absolute;
  152. left: -79px;
  153. top: 70px;
  154. width: 799px;
  155. height: 199px;
  156. background-image: url(../content/images/title.png);
  157. background-position: center center;
  158. background-repeat: no-repeat;
  159. }
  160. #startScreen .loading {
  161. position: absolute;
  162. left: 0px;
  163. top: 590px;
  164. width: 640px;
  165. text-align: center;
  166. color: #fff;
  167. font-size: 30px;
  168. font-weight: bold;
  169. text-shadow: -2px 0px 5px #4f5e63,2px 0px 5px #4f5e63,0px -2px 5px #4f5e63,0px 4px 5px #4f5e63;
  170. }
  171. #startScreen .tips {
  172. position: absolute;
  173. width: 340px;
  174. height: 35px;
  175. left: 151px;
  176. top: 343px;
  177. background-image: url(../content/images/startTips.png);
  178. background-repeat: no-repeat;
  179. display: none;
  180. }
  181. #startScreen .face {
  182. position: absolute;
  183. width: 146px;
  184. height: 148px;
  185. background-image: url(../content/images/faces.png);
  186. background-repeat: no-repeat;
  187. border: solid 6px #fff;
  188. border-radius: 50%;
  189. box-shadow: 1px 1px 5px #aaa;
  190. cursor: pointer;
  191. display: none;
  192. }
  193. #startScreen .face .name {
  194. position: absolute;
  195. width: 93px;
  196. height: 34px;
  197. background-image: url(../content/images/faces.png);
  198. background-repeat: no-repeat;
  199. background-position: 0px -178px;
  200. top: 178px;
  201. display: none;
  202. }
  203. #startScreen .face1 {
  204. left: 49px;
  205. top: 438px;
  206. background-position: 0px 0px;
  207. border-color: #88d436;
  208. }
  209. #startScreen .face1 .name {
  210. left: 25px;
  211. background-position: -22px -178px;
  212. }
  213. #startScreen .face2 {
  214. left: 245px;
  215. top: 438px;
  216. background-position: -191px 0px;
  217. }
  218. #startScreen .face2 .name {
  219. left: 25px;
  220. background-position: -220px -178px;
  221. }
  222. #startScreen .face3 {
  223. left: 439px;
  224. top: 438px;
  225. background-position: -381px 0px;
  226. }
  227. #startScreen .face3 .name {
  228. left: 25px;
  229. background-position: -406px -178px;
  230. }
  231. #startScreen .btnStart {
  232. position: absolute;
  233. left: 144px;
  234. top: 790px;
  235. width: 345px;
  236. height: 111px;
  237. background-image: url(../content/images/btnStart.png);
  238. background-repeat: no-repeat;
  239. cursor: pointer;
  240. display: none;
  241. }
  242. #startScreen .btnRanklist {
  243. position: absolute;
  244. left: 144px;
  245. top: 920px;
  246. width: 345px;
  247. height: 111px;
  248. background-image: url(../content/images/btnRanklist.png);
  249. background-repeat: no-repeat;
  250. cursor: pointer;
  251. display: none;
  252. }
  253. #startScreen .copyright {
  254. position: absolute;
  255. width: 561px;
  256. height: 232px;
  257. left: 40px;
  258. bottom: 130px;
  259. background-repeat: no-repeat;
  260. z-index: 1000;
  261. }
  262. #startScreen .copyright a {
  263. position: absolute;
  264. width: 140px;
  265. height: 55px;
  266. display: block;
  267. z-index: 1000;
  268. background-color: rgba(0,0,0,0);
  269. }
  270. #startScreen .copyright .linkMiaopai {
  271. bottom: 0px;
  272. left: 115px;
  273. }
  274. #startScreen .copyright .linkHuowu {
  275. bottom: 0px;
  276. left: 400px;
  277. }
  278. #startScreen .copyright1 {
  279. display: none;
  280. font-size: 24px;
  281. color: #fff;
  282. right: 0px;
  283. bottom: 10px;
  284. position: absolute;
  285. text-align: right;
  286. text-shadow: 0px 0px 15px #000;
  287. }
  288. #ranklistScreen {
  289. position: absolute;
  290. left: 0px;
  291. top: 0px;
  292. width: 640px;
  293. height: 1136px;
  294. display: none;
  295. }
  296. #ranklistScreen .background {
  297. position: absolute;
  298. left: 25px;
  299. top: 139px;
  300. width: 587px;
  301. height: 775px;
  302. background-image: url(../content/images/ranklistBg.png);
  303. background-repeat: no-repeat;
  304. }
  305. #ranklistScreen .background #ranklistFrame {
  306. position: absolute;
  307. left: 45px;
  308. top: 111px;
  309. width: 500px;
  310. height: 605px;
  311. overflow: hidden;
  312. }
  313. #ranklistScreen .btnStart1 {
  314. position: absolute;
  315. left: 60px;
  316. top: 864px;
  317. width: 292px;
  318. height: 97px;
  319. background-image: url(../content/images/btnStart1.png);
  320. background-repeat: no-repeat;
  321. z-index: 10;
  322. cursor: pointer;
  323. }
  324. #ranklistScreen .btnAward {
  325. position: absolute;
  326. left: 368px;
  327. top: 864px;
  328. width: 213px;
  329. height: 101px;
  330. background-repeat: no-repeat;
  331. cursor: pointer;
  332. z-index: 10;
  333. }
  334. #ranklist li {
  335. position: relative;
  336. background-image: url(../content/images/ranklistElement.png);
  337. background-repeat: no-repeat;
  338. left: 9px;
  339. width: 485px;
  340. height: 116px;
  341. }
  342. #ranklist li .number {
  343. position: absolute;
  344. left: 20px;
  345. top: 25px;
  346. width: 65px;
  347. height: 65px;
  348. background-image: url(../content/images/ranklistElement.png);
  349. line-height: 55px;
  350. font-size: 40px;
  351. color: #fff;
  352. text-align: center;
  353. }
  354. #ranklist li .name {
  355. position: absolute;
  356. left: 100px;
  357. top: 20px;
  358. font-size: 26px;
  359. color: #fff;
  360. text-shadow: 0px 1px 3px #3c240a,-3px 0px 3px #3c240a,3px 0px 3px #3c240a;
  361. }
  362. #ranklist li .score {
  363. position: absolute;
  364. left: 100px;
  365. top: 55px;
  366. font-size: 26px;
  367. color: #fff;
  368. text-shadow: 0px 1px 3px #3c240a,-3px 0px 3px #3c240a,3px 0px 3px #3c240a;
  369. }
  370. #gameOverScreen {
  371. position: absolute;
  372. left: 0px;
  373. top: 0px;
  374. width: 640px;
  375. height: 1136px;
  376. display: none;
  377. }
  378. #gameOverScreen .title {
  379. position: absolute;
  380. left: 181px;
  381. top: 210px;
  382. width: 277px;
  383. height: 43px;
  384. background-image: url(../content/images/gameOverTitle.png);
  385. background-repeat: no-repeat;
  386. }
  387. #gameOverScreen .background {
  388. position: absolute;
  389. left: 91px;
  390. top: 309px;
  391. width: 438px;
  392. height: 229px;
  393. background-image: url(../content/images/gameOverBg.png);
  394. background-repeat: no-repeat;
  395. text-align: center;
  396. padding-top: 50px;
  397. font-weight: bold;
  398. color: #fff;
  399. font-size: 25px;
  400. text-shadow: -2px 0px 5px #686456,2px 0px 5px #686456,0px -2px 5px #686456,0px 4px 5px #686456;
  401. }
  402. #gameOverScreen .background .text {
  403. color: #ffe556;
  404. vertical-align: middle;
  405. text-shadow: -2px 0px 5px rgba(200,69,11,1),2px 0px 5px rgba(200,69,11,1),0px -2px 5px rgba(200,69,11,1),0px 4px 5px rgba(200,69,11,1);
  406. }
  407. #gameOverScreen .background .subTitle {
  408. display: inline-block;
  409. width: 231px;
  410. height: 44px;
  411. background-image: url(../content/images/gameOverSubTitle.png);
  412. background-repeat: no-repeat;
  413. vertical-align: middle;
  414. }
  415. #gameOverScreen .background .content {
  416. position: absolute;
  417. left: 50px;
  418. top: 120px;
  419. width: 370px;
  420. height: 110px;
  421. text-align: left;
  422. line-height: 36px;
  423. letter-spacing: 3px;
  424. }
  425. #gameOverScreen .button {
  426. position: absolute;
  427. width: 150px;
  428. height: 154px;
  429. background-image: url(../content/images/btnGameOver.png);
  430. background-repeat: no-repeat;
  431. cursor: pointer;
  432. }
  433. #gameOverScreen .btnContinue {
  434. left: 75px;
  435. top: 627px;
  436. background-position: 0px 0px;
  437. }
  438. #gameOverScreen .btnShare {
  439. left: 246px;
  440. top: 627px;
  441. background-position: -171px 0px;
  442. }
  443. #gameOverScreen .btnAward {
  444. left: 415px;
  445. top: 627px;
  446. background-position: -340px 0px;
  447. }
  448. #gameOverScreen .banner {
  449. position: absolute;
  450. left: 0px;
  451. bottom: 0px;
  452. width: 640px;
  453. height: 100px;
  454. z-index: 1000;
  455. }
  456. #gameOverScreen .banner a {
  457. position: absolute;
  458. display: block;
  459. left: 0px;
  460. top: 0px;
  461. width: 100%;
  462. height: 100%;
  463. z-index: 1000;
  464. background-color: rgba(0,0,0,0);
  465. }
  466. #ruleScreen {
  467. position: absolute;
  468. left: 0px;
  469. top: 0px;
  470. width: 640px;
  471. height: 1136px;
  472. display: none;
  473. z-index: 1000;
  474. }
  475. #ruleScreen .background {
  476. position: absolute;
  477. left: 27px;
  478. top: 170px;
  479. width: 587px;
  480. height: 535px;
  481. background-repeat: no-repeat;
  482. }
  483. #ruleScreen #txtTelphone {
  484. position: absolute;
  485. left: 71px;
  486. top: 520px;
  487. width: 355px;
  488. height: 61px;
  489. background-color: rgba(0,0,0,0);
  490. background-image: url(../content/images/ruleElement.png);
  491. background-repeat: no-repeat;
  492. background-position: 0px -2px;
  493. color: #fff;
  494. border: 0px;
  495. font-size: 34px;
  496. padding-left: 25px;
  497. z-index: 999;
  498. }
  499. #ruleScreen .btnOk {
  500. position: absolute;
  501. left: 455px;
  502. top: 520px;
  503. width: 122px;
  504. height: 69px;
  505. background-image: url(../content/images/ruleElement.png);
  506. background-repeat: no-repeat;
  507. background-position: -379px 0px;
  508. cursor: pointer;
  509. }
  510. #ruleScreen .btnShare {
  511. position: absolute;
  512. left: 151px;
  513. top: 643px;
  514. width: 345px;
  515. height: 111px;
  516. background-image: url(../content/images/ruleElement.png);
  517. background-repeat: no-repeat;
  518. background-position: -16px -79px;
  519. cursor: pointer;
  520. }
  521. #ruleScreen .btnBack {
  522. position: absolute;
  523. left: 151px;
  524. top: 761px;
  525. width: 345px;
  526. height: 111px;
  527. background-image: url(../content/images/ruleElement.png);
  528. background-repeat: no-repeat;
  529. background-position: -16px -201px;
  530. cursor: pointer;
  531. }