question.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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: 4.96rem;
  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: 5.2rem;
  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. position: absolute;
  154. left: 15%;
  155. top: 10%;
  156. width: 70%;
  157. }
  158. canvas {
  159. position: absolute;
  160. top: -9999px;
  161. left: -9999px;
  162. }
  163. .baocun {
  164. position: absolute;
  165. left: 50%;
  166. bottom: 15%;
  167. transform: translateX(-50%);
  168. color: #fff;
  169. font-size: .28rem;
  170. }
  171. .code {
  172. position: absolute;
  173. left: 0;
  174. bottom: 0;
  175. width: 100%;
  176. height: 1.6rem;
  177. background: #fff;
  178. display: flex;
  179. align-items: center;
  180. }
  181. .code img {
  182. width: 1.32rem;
  183. height: 1.32rem;
  184. margin: 0 .45rem;
  185. }
  186. .code .text {
  187. display: flex;
  188. flex-direction: column;
  189. font-size: .28rem;
  190. }
  191. /*卷边效果 需要完善已经注释*/
  192. /*
  193. box-shadow: 0 4px 8px 0 #A691D3;
  194. .question:before{
  195. content: '';
  196. position: absolute;
  197. right:0;
  198. bottom:0;
  199. border-style: solid;
  200. border-width: 0;
  201. border-color:#fff rgba(0, 0, 0, 0.2);
  202. transition: all .5s;
  203. border-radius: 0 0 50% 0;
  204. }
  205. .question:hover:before {
  206. border-top-width: 300px;
  207. border-right-width: 300px;
  208. } */