上移&下移试题.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>试题编辑</title>
  6. <link rel="stylesheet" type="text/css" href="../css/base.css">
  7. <script type="text/javascript" src="../js/jquery.min.js"></script>
  8. <style type="text/css">
  9. /*.topic-content*/
  10. .choose-topic h3,.filling-topic h3,.answer-topic h3{font-weight: 700;font-size: 14px;line-height: 34px;}
  11. .topic{padding-left: 30px; font-size:14px;text-align: justify;line-height: 22px;}
  12. .topic a{margin:0 5px; color: #4395ff}
  13. .topic p{display: inline;}
  14. /*.topic .score{color: #f00;}*/
  15. .score input,.right-answer{width: 20px;text-align: center; background: #fff;border:0;color: #50d2c2}
  16. .score input:focus,.right-answer:focus{border:1px solid #50d2c2;outline: none;}
  17. /*.right-answer{color: #f40;}*/
  18. .topic-answer input{}
  19. .words{position: relative;padding-left: 25px; width: 80%;box-sizing: border-box;cursor:pointer;}
  20. .controls{width: 20%;}
  21. .order{position: absolute;left: 0;top: 0;width: 25px;}
  22. .options{padding-left: 35px;}
  23. .options li{margin-top: 10px; list-style:upper-latin;}
  24. .listType_1{width: 25%;}
  25. .listType_2{width: 50%;}
  26. .listType_3{width: 100%;}
  27. .topic-answer,.topic-explain{padding-left: 20px;margin:10px 0;}
  28. .answer-tit{width: 80%;}
  29. .answer-btn{width: 20%;}
  30. .topic-detail{display: none;}
  31. /*弹出层*/
  32. .modal{position: fixed;top: 0;left: 0;width: 100%;height: 100%;font-size:14px;display: none;}
  33. .modal{width: 100%;height: 100%;background: rgba(0,0,0,.4)}
  34. .modal-content{position: absolute;left: 50%;top: 50%;padding-top: 40px; width: 500px;background: #fff; transform: translate(-50%,-50%);}
  35. .modal-title{position: absolute;top: 0;left: 0;padding-left: 20px; width: 100%;height: 40px;line-height: 40px;background: #eee;box-sizing: border-box;}
  36. .modal-title em{width: 40px;height: 40px;text-align: center;font-size: 20px;cursor: pointer;}
  37. .model-score{text-align: center;margin:30px 0;}
  38. .model-score input{padding-left: 5px; height: 30px;width: 230px;border:1px solid #ccc;outline: none;}
  39. .model-score input:focus{border-color: #50d2c2;box-shadow: 0 0 5px #50d2c2;}
  40. .modal-btn{text-align: center;margin:10px 0;}
  41. .modal-btn a{display: inline-block;margin:0 5px; width: 100px; line-height: 40px;background: #50d2c2;color: #fff;}
  42. </style>
  43. <script type="text/javascript">
  44. $(function(){
  45. /* 点击展开试题解析*/
  46. $("body").delegate('.words', 'click', function(event) {
  47. $(this).parent(".topic-content").siblings('.topic-detail').slideToggle();
  48. });
  49. /*修改分数*/
  50. // $("body").delegate('.change-score', 'click', function(event) {
  51. // $(this).closest(".controls").siblings(".words").find("input").attr("disabled",false).focus();
  52. // })
  53. // $("body").delegate('.answer-btn a', 'click', function(event) {
  54. // $(this).closest('.answer-btn').prev(".answer-tit").find("input").attr("disabled",false).focus();
  55. // });
  56. // $("body").delegate('.words input,.right-answer', 'keyup', function(event) {
  57. // if($(this).is(".words input")){
  58. // $(this).val($(this).val().replace(/[^0-9]/g,""));
  59. // }else{
  60. // $(this).val($(this).val().replace(/[^A-D]/g,""));
  61. // }
  62. // var testLength = $(this).val().length;
  63. // $(this).width(testLength*10 + "px");
  64. // if(event.keyCode == 13){
  65. // $(this).blur();
  66. // $(this).attr("disabled",true)
  67. // }
  68. // })
  69. /* 上移试题 */
  70. $("body").delegate('.topic .up', 'click', function(event) {
  71. var curTopic = $(this).closest(".topic");
  72. var prevTopic = curTopic.prev(".topic");
  73. curTopic.after(prevTopic);
  74. order();
  75. });
  76. /* 下移试题 */
  77. $("body").delegate('.topic .down', 'click', function(event) {
  78. var curTopic = $(this).closest(".topic");
  79. var nextTopic = curTopic.next(".topic");
  80. nextTopic.after(curTopic);
  81. order();
  82. });
  83. function order(){
  84. /*排序试题*/
  85. for(var i=0;i<$(".order").length;i++){
  86. $(".order").eq(i).html(i+1+"、")
  87. }
  88. }
  89. /* 修改分数弹层*/
  90. $(".close").click(function(event) {
  91. $(this).closest(".modal").fadeOut();
  92. });
  93. $(".change-score").click(function(){
  94. $(".modal").fadeIn();
  95. })
  96. $(".model-score input").keyup(function(){
  97. $(this).val($(this).val().replace(/[^0-9]/g,""));
  98. })
  99. })
  100. </script>
  101. </head>
  102. <body>
  103. <div class="choose-topic">
  104. <h3>一、选择题</h3>
  105. <!-- 选择题 答案一排 -->
  106. <div class="topic">
  107. <div class="topic-content clearfix">
  108. <div class="words fl">
  109. <span class="order">1.</span><span class="score">(<input type="text" value="60" disabled />分)</span>已知集合A={x∈N|x<6},则下sbsbsb错误的是,则下列关系式错误的是,则下列关系式错误的是( )
  110. </div>
  111. <div class="controls fr clearfix">
  112. <a href="javascript:;" class="fr up">上移</a>
  113. <a href="javascript:;" class="fr down">下移</a>
  114. <a href="javascript:;" class="fr change-score">修改分数</a>
  115. </div>
  116. </div>
  117. <div class="topic-detail">
  118. <ul class="options clearfix">
  119. <li class="listType_1 fl">
  120. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  121. </li>
  122. <li class="listType_1 fl">
  123. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  124. </li>
  125. <li class="listType_1 fl">
  126. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  127. </li>
  128. <li class="listType_1 fl">
  129. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  130. </li>
  131. </ul>
  132. <div class="topic-answer clearfix">
  133. <div class="fl answer-tit">
  134. 试题答案:<input type="text" value="A" class="right-answer" disabled="">
  135. </div>
  136. <!-- <div class="fr answer-btn clearfix">
  137. <a href="javascript:;" class="fr">修改答案</a>
  138. </div> -->
  139. </div>
  140. <div class="topic-explain">
  141. 试题解析:
  142. <p style="">明确集合A中元素上属性,利用列举法将集合A 表示出来,然后选择.</p><p style="">解:由题意,A={0,1,2,3,4,5},故选D.</p>
  143. </div>
  144. </div>
  145. </div>
  146. <!-- 选择题 答案两排 -->
  147. <div class="topic">
  148. <div class="topic-content clearfix">
  149. <div class="words fl">
  150. <span class="order">2.</span><span class="score">(<input type="text" value="60" disabled />分)</span>已知集合A={x∈N|x<6},则下列关系式错误的A={x∈N|x<6}2222222222222222222222222222222( )
  151. </div>
  152. <div class="controls fr clearfix">
  153. <a href="javascript:;" class="fr up">上移</a>
  154. <a href="javascript:;" class="fr down">下移</a>
  155. <a href="javascript:;" class="fr change-score">修改分数</a>
  156. </div>
  157. </div>
  158. <div class="topic-detail">
  159. <ul class="options clearfix">
  160. <li class="listType_2 fl">
  161. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  162. </li>
  163. <li class="listType_2 fl">
  164. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  165. </li>
  166. <li class="listType_2 fl">
  167. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  168. </li>
  169. <li class="listType_2 fl">
  170. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  171. </li>
  172. </ul>
  173. <div class="topic-answer clearfix">
  174. <div class="fl answer-tit">
  175. 试题答案:<input type="text" value="A" class="right-answer" disabled="">
  176. </div>
  177. <!-- <div class="fr answer-btn clearfix">
  178. <a href="javascript:;" class="fr">修改答案</a>
  179. </div> -->
  180. </div>
  181. <div class="topic-explain">
  182. 试题解析:
  183. <p style="">明确集合A中元素上属性,利用列举法将集合A 表示出来,然后选择.</p><p style="">解:由题意,A={0,1,2,3,4,5},故选D.</p>
  184. </div>
  185. </div>
  186. </div>
  187. <!-- 选择题 答案四排 -->
  188. <div class="topic">
  189. <div class="topic-content clearfix">
  190. <div class="words fl">
  191. <span class="order">3.</span><span class="score">(<input type="text" value="60" disabled />分)</span>已知集合A={x∈N|x<6},则下列关系式错误的A={x∈N|x<6}3333333333333333333333333333333333333333333333333333333( )
  192. </div>
  193. <div class="controls fr clearfix">
  194. <a href="javascript:;" class="fr up">上移</a>
  195. <a href="javascript:;" class="fr down">下移</a>
  196. <a href="javascript:;" class="fr change-score">修改分数</a>
  197. </div>
  198. </div>
  199. <div class="topic-detail">
  200. <ul class="options clearfix">
  201. <li class="listType_3 fl">
  202. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  203. </li>
  204. <li class="listType_3 fl">
  205. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  206. </li>
  207. <li class="listType_3 fl">
  208. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  209. </li>
  210. <li class="listType_3 fl">
  211. <p><img width="125" height="20" src="http://mtstatic.dev.xueping.com/dpi600/90/90e3ef7645fcc9daa6b5e1a0f2e67c7e.gif?2\sqrt%203%20%20\in%20\left\{%20{x\left|%20{x%20\leqslant%203}%20\right.}%20\right\}" class="gsImgLatex mathType" style="vertical-align: middle;"></p>
  212. </li>
  213. </ul>
  214. <div class="topic-answer clearfix">
  215. <div class="fl answer-tit">
  216. 试题答案:<input type="text" value="A" class="right-answer" disabled="">
  217. </div>
  218. <!-- <div class="fr answer-btn clearfix">
  219. <a href="javascript:;" class="fr">修改答案</a>
  220. </div> -->
  221. </div>
  222. <div class="topic-explain">
  223. 试题解析:
  224. <p style="">明确集合A中元素上属性,利用列举法将集合A 表示出来,然后选择.</p><p style="">解:由题意,A={0,1,2,3,4,5},故选D.</p>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. <div class="filling-topic">
  230. <h3>二、填空题</h3>
  231. <!-- 填空题 -->
  232. <div class="topic">
  233. <div class="topic-content clearfix">
  234. <div class="words fl">
  235. <span class="order">4.</span><span class="score">(<input type="text" value="60" disabled />分)</span>已知集合A={x∈N|x<6},则下列关系式错误的A={x∈N|x<6}4444444444444444444444444444444444444444444444444444444444444444444( )
  236. </div>
  237. <div class="controls fr clearfix">
  238. <a href="javascript:;" class="fr up">上移</a>
  239. <a href="javascript:;" class="fr down">下移</a>
  240. <a href="javascript:;" class="fr change-score">修改分数</a>
  241. </div>
  242. </div>
  243. <div class="topic-detail">
  244. <div class="topic-answer clearfix">
  245. <div class="fl answer-tit">
  246. 试题答案:<p>大傻叉</p>
  247. </div>
  248. <!-- <div class="fr answer-btn clearfix">
  249. <a href="javascript:;" class="fr">修改答案</a>
  250. </div> -->
  251. </div>
  252. <div class="topic-explain">
  253. 试题解析:
  254. <p style="">明确集合A中元素上属性,利用列举法将集合A 表示出来,然后选择.</p><p style="">解:由题意,A={0,1,2,3,4,5},故选D.</p>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. <div class="answer-topic">
  260. <h3>三、解答题</h3>
  261. <!-- 解答题 -->
  262. <div class="topic">
  263. <div class="topic-content clearfix">
  264. <div class="words fl">
  265. <span class="order">5.</span><span class="score">(<input type="text" value="60" disabled />分)</span>已知集合A={x∈N|x<6},则下列关系式错误的A={x∈N|x<6}55555555555555555555555555555555555555555555555555555555555( )
  266. </div>
  267. <div class="controls fr clearfix">
  268. <a href="javascript:;" class="fr up">上移</a>
  269. <a href="javascript:;" class="fr down">下移</a>
  270. <a href="javascript:;" class="fr change-score">修改分数</a>
  271. </div>
  272. </div>
  273. <div class="topic-detail">
  274. <div class="topic-answer clearfix">
  275. <div class="fl answer-tit">
  276. 试题答案:<p>大傻叉</p>
  277. </div>
  278. <!-- <div class="fr answer-btn clearfix">
  279. <a href="javascript:;" class="fr">修改答案</a>
  280. </div> -->
  281. </div>
  282. <div class="topic-explain">
  283. 试题解析:
  284. <p style="">明确集合A中元素上属性,利用列举法将集合A 表示出来,然后选择.</p><p style="">解:由题意,A={0,1,2,3,4,5},故选D.</p>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. <!-- 修改分数弹窗 -->
  290. <div class="modal">
  291. <div class="modal-shadow"></div>
  292. <div class="modal-content">
  293. <div class="modal-title clearfix">
  294. 修改试题分数<em class="fr close">×</em>
  295. </div>
  296. <div class="model-score">
  297. 请输入修改后的分数:<input type="text">
  298. </div>
  299. <div class="modal-btn">
  300. <a href="javascript:;" class="close">确定</a>
  301. <a href="javascript:;" class="close">取消</a>
  302. </div>
  303. </div>
  304. </div>
  305. </body>
  306. </html>