question.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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.91rem;
  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: 7.14rem;
  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: url('../image/question/popupBg.png');
  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: 5%;
  154. top: 1.2rem;
  155. width: 90%;
  156. }
  157. canvas {
  158. position: absolute;
  159. top: -9999px;
  160. left: -9999px;
  161. }
  162. .baocun {
  163. position: absolute;
  164. left: 50%;
  165. bottom: 2.48rem;
  166. transform: translateX(-50%);
  167. width: 100%;
  168. color: #fff;
  169. font-size: .34rem;
  170. text-align: center;
  171. }
  172. .lingqu {
  173. position: absolute;
  174. left: 1.45rem;
  175. bottom: 1.02rem;
  176. width: 4.6rem;
  177. height: .98rem;
  178. background: url('../image/question/lingqu.png');
  179. background-size: 100% 100%;
  180. display: block;
  181. }
  182. /*卷边效果 需要完善已经注释*/
  183. /*
  184. box-shadow: 0 4px 8px 0 #A691D3;
  185. .question:before{
  186. content: '';
  187. position: absolute;
  188. right:0;
  189. bottom:0;
  190. border-style: solid;
  191. border-width: 0;
  192. border-color:#fff rgba(0, 0, 0, 0.2);
  193. transition: all .5s;
  194. border-radius: 0 0 50% 0;
  195. }
  196. .question:hover:before {
  197. border-top-width: 300px;
  198. border-right-width: 300px;
  199. } */