question.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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: .5rem;
  87. display: flex;
  88. align-items: center;
  89. }
  90. .audio .audiobtn {
  91. width: .7rem;
  92. height: .7rem;
  93. }
  94. .audio div {
  95. width: 85%;
  96. font-size: .32rem;
  97. }
  98. .question-photo {
  99. position: relative;
  100. width: 100%;
  101. margin-top: 1.7rem;
  102. height: 3.72rem;
  103. }
  104. .question-photo img {
  105. position: absolute;
  106. top: 50%;
  107. left: 0;
  108. transform: translateY(-50%);
  109. width: 100%;
  110. }
  111. .option {
  112. width: 100%;
  113. margin-top: .5rem;
  114. }
  115. .option li {
  116. width: 100%;
  117. height: .7rem;
  118. border: .02rem #FEA10F solid;
  119. margin-bottom: .3rem;
  120. font-size: .28rem;
  121. text-align: center;
  122. line-height: .7rem;
  123. border-radius: .16rem;
  124. list-style:none;
  125. }
  126. .select {
  127. background: #FEA10F;
  128. color: #fff;
  129. }
  130. .order {
  131. font-size: .28rem;
  132. text-align: center;
  133. padding-bottom: .3rem;
  134. }
  135. .ind {
  136. color: #7A81FF;
  137. }
  138. .popup {
  139. position: absolute;
  140. left: 0;
  141. top: 0;
  142. width: 100%;
  143. height: 100%;
  144. background: rgba(0, 0, 0, .8);
  145. z-index: 999;
  146. display: none;
  147. }
  148. .popup-content {
  149. width: 100%;
  150. height: 100%;
  151. }
  152. .popup-content .bg {
  153. margin-left: 15%;
  154. margin-top: 0rem;
  155. width: 70%;
  156. }
  157. canvas {
  158. position: absolute;
  159. top: -9999px;
  160. left: -9999px;
  161. }
  162. .baocun {
  163. margin-left: 29%;
  164. margin-top: 0rem;
  165. margin-bottom: 0.3rem;
  166. font-size: 0.3rem;
  167. color: gainsboro;
  168. }
  169. .code {
  170. position: absolute;
  171. left: 0;
  172. bottom: 0;
  173. width: 100%;
  174. height: 1.4rem;
  175. background: #fff;
  176. display: flex;
  177. align-items: center;
  178. }
  179. .code img {
  180. width: 1.32rem;
  181. height: 1.32rem;
  182. margin: 0 .45rem;
  183. }
  184. .code .text {
  185. display: flex;
  186. flex-direction: column;
  187. font-size: .28rem;
  188. }
  189. /*卷边效果 需要完善已经注释*/
  190. /*
  191. box-shadow: 0 4px 8px 0 #A691D3;
  192. .question:before{
  193. content: '';
  194. position: absolute;
  195. right:0;
  196. bottom:0;
  197. border-style: solid;
  198. border-width: 0;
  199. border-color:#fff rgba(0, 0, 0, 0.2);
  200. transition: all .5s;
  201. border-radius: 0 0 50% 0;
  202. }
  203. .question:hover:before {
  204. border-top-width: 300px;
  205. border-right-width: 300px;
  206. } */