question.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. * {
  2. padding: 0;
  3. margin: 0;
  4. }
  5. html,
  6. body {
  7. width: 100%;
  8. height: 100%;
  9. box-sizing: border-box;
  10. }
  11. .content {
  12. width: 100%;
  13. height: 100%;
  14. overflow-y: scroll;
  15. }
  16. .content::-webkit-scrollbar {
  17. width:0;
  18. }
  19. .question-container {
  20. width: 100%;
  21. position: relative;
  22. }
  23. .container-bg {
  24. width: 100%;
  25. display: block;
  26. }
  27. .title {
  28. position: absolute;
  29. top: 3.46rem;
  30. left: 50%;
  31. transform: translateX(-50%);
  32. width: 7.12rem;
  33. height: .54rem;
  34. }
  35. .title img {
  36. position: absolute;
  37. left: 0;
  38. top: 0;
  39. width: 100%;
  40. height: 100%;
  41. }
  42. .subject {
  43. position: absolute;
  44. top: 3.7rem;
  45. left: 0;
  46. right: 0;
  47. margin:0 auto;
  48. width: 6.62rem;
  49. border-radius: 0 0 .2rem .2rem;
  50. }
  51. .question {
  52. position: relative;
  53. z-index: 2;
  54. width: 6.62rem;
  55. height: auto;
  56. border-radius: 0 0 .2rem .2rem;
  57. background: #fff;
  58. overflow: hidden;
  59. padding: 0 .4rem;
  60. box-sizing: border-box;
  61. }
  62. .inset {
  63. position: absolute;
  64. left: 0;
  65. top: 0;
  66. z-index: 99;
  67. width: 100%;
  68. height: .54rem;
  69. }
  70. .bottom {
  71. position: absolute;
  72. left: 0;
  73. bottom: -.18rem;
  74. width: 100%;
  75. height: .26rem;
  76. }
  77. .question-box {
  78. height: 9.72rem;
  79. overflow: hidden;
  80. border-radius: 0 0 .2rem .2rem;
  81. background: #fff;
  82. }
  83. .audio {
  84. position: absolute;
  85. top: .5rem;
  86. left: .3rem;
  87. display: flex;
  88. align-items: center;
  89. }
  90. .audio .audiobtn {
  91. width: .7rem;
  92. height: .7rem;
  93. margin-top: -10px;
  94. }
  95. .audio div {
  96. width: 85%;
  97. font-size: .32rem;
  98. }
  99. .question-photo {
  100. position: relative;
  101. width: 100%;
  102. margin-top: 1.7rem;
  103. height: 3.72rem;
  104. }
  105. .question-photo img {
  106. position: absolute;
  107. top: 50%;
  108. left: 0;
  109. transform: translateY(-50%);
  110. width: 100%;
  111. }
  112. .option {
  113. width: 100%;
  114. margin-top: .5rem;
  115. }
  116. .option li {
  117. width: 100%;
  118. height: .7rem;
  119. border: .02rem #FEA10F solid;
  120. margin-bottom: .3rem;
  121. font-size: .28rem;
  122. text-align: center;
  123. line-height: .7rem;
  124. border-radius: .16rem;
  125. list-style:none;
  126. }
  127. .select {
  128. background: #FEA10F;
  129. color: #fff;
  130. }
  131. .order {
  132. font-size: .28rem;
  133. text-align: center;
  134. padding-bottom: .3rem;
  135. }
  136. .ind {
  137. color: #7A81FF;
  138. }
  139. .popup {
  140. position: absolute;
  141. left: 0;
  142. top: 0;
  143. width: 100%;
  144. height: 100%;
  145. background: rgba(0, 0, 0, .8);
  146. z-index: 999;
  147. display: none;
  148. }
  149. .popup-content {
  150. width: 100%;
  151. height: 100%;
  152. }
  153. .popup-content .bg {
  154. margin-left: 17.5%;
  155. margin-top: 0.1rem;
  156. width: 65%;
  157. }
  158. canvas {
  159. position: absolute;
  160. top: -9999px;
  161. left: -9999px;
  162. }
  163. .baocun {
  164. margin-left: 26%;
  165. margin-top: 0rem;
  166. margin-bottom: 0.3rem;
  167. font-size: 0.3rem;
  168. color: gainsboro;
  169. }
  170. .code_all {
  171. position: absolute;
  172. left: 0;
  173. bottom: 0;
  174. width: 100%;
  175. display: flex;
  176. align-items: center;
  177. }
  178. .code_all img {
  179. width: 100%;
  180. }
  181. /*卷边效果 需要完善已经注释*/
  182. /*
  183. box-shadow: 0 4px 8px 0 #A691D3;
  184. .question:before{
  185. content: '';
  186. position: absolute;
  187. right:0;
  188. bottom:0;
  189. border-style: solid;
  190. border-width: 0;
  191. border-color:#fff rgba(0, 0, 0, 0.2);
  192. transition: all .5s;
  193. border-radius: 0 0 50% 0;
  194. }
  195. .question:hover:before {
  196. border-top-width: 300px;
  197. border-right-width: 300px;
  198. } */