question.css 3.4 KB

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