previewTemp.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191
  1. const css =
  2. '\
  3. body,\
  4. div,\
  5. ul,\
  6. ol,\
  7. li,\
  8. h1,\
  9. h2,\
  10. h3,\
  11. h4,\
  12. h5,\
  13. h6,\
  14. input,\
  15. p,\
  16. tr,\
  17. th,\
  18. td,\
  19. span,\
  20. a,\
  21. header,\
  22. footer,\
  23. i {\
  24. margin: 0;\
  25. padding: 0;\
  26. -webkit-box-sizing: border-box;\
  27. box-sizing: border-box;\
  28. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\
  29. }\
  30. \
  31. li {\
  32. list-style: none;\
  33. }\
  34. \
  35. em,\
  36. i,\
  37. u {\
  38. font-style: normal;\
  39. }\
  40. button {\
  41. font-family: "Helvetica Neue", Helvetica, "PingFang SC",\
  42. "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;\
  43. }\
  44. \
  45. h1,\
  46. h2,\
  47. h3,\
  48. h4,\
  49. h5,\
  50. h6 {\
  51. font-size: 100%;\
  52. }\
  53. \
  54. fieldset,\
  55. img {\
  56. border: 0;\
  57. }\
  58. \
  59. abbr {\
  60. border: 0;\
  61. font-variant: normal;\
  62. }\
  63. \
  64. a {\
  65. text-decoration: none;\
  66. color: inherit;\
  67. *color: #bbbbbb;\
  68. }\
  69. \
  70. img {\
  71. vertical-align: middle;\
  72. }\
  73. \
  74. body {\
  75. font-family: "Helvetica Neue", Helvetica, "PingFang SC",\
  76. "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;\
  77. -webkit-font-smoothing: antialiased;\
  78. -moz-osx-font-smoothing: grayscale;\
  79. font-size: 14px;\
  80. color: #545454;\
  81. font-weight: bold;\
  82. }\
  83. \
  84. .color-primary {\
  85. color: #23c4b9 !important;\
  86. }\
  87. \
  88. .color-success {\
  89. color: #1cd0a1;\
  90. }\
  91. \
  92. .color-warning {\
  93. color: #ff9f45;\
  94. }\
  95. \
  96. .color-danger {\
  97. color: #fe6c69;\
  98. }\
  99. \
  100. .color-info {\
  101. color: #909399;\
  102. }\
  103. \
  104. .btn--danger.el-button--text {\
  105. color: #fe6c69 !important;\
  106. }\
  107. \
  108. .btn-white {\
  109. background-color: #fff !important;\
  110. color: #999 !important;\
  111. }\
  112. \
  113. .font-bold {\
  114. font-weight: bold;\
  115. }\
  116. \
  117. .table-head-bg th {\
  118. background-color: #f6f6f6;\
  119. color: #545454;\
  120. }\
  121. \
  122. .btn-act {\
  123. background: #1cd0a1 !important;\
  124. -webkit-box-shadow: 5px 5px 4px 0px rgba(28, 208, 161, 0.3);\
  125. box-shadow: 5px 5px 4px 0px rgba(28, 208, 161, 0.3);\
  126. border-radius: 10px;\
  127. }\
  128. \
  129. .card-preview {\
  130. padding-top: 70px;\
  131. background-color: #f0f0f0;\
  132. }\
  133. \
  134. .card-preview .page-box {\
  135. margin: 10px auto;\
  136. -webkit-box-shadow: 0 0 4px #ddd;\
  137. box-shadow: 0 0 4px #ddd;\
  138. }\
  139. \
  140. .card-preview .element-item {\
  141. width: 100% !important;\
  142. }\
  143. \
  144. .card-print {\
  145. padding: 0;\
  146. }\
  147. \
  148. .card-print .page-box {\
  149. margin: 0 auto;\
  150. -webkit-box-shadow: none;\
  151. box-shadow: none;\
  152. page-break-after: always;\
  153. }\
  154. \
  155. .page-box {\
  156. position: relative;\
  157. width: 1587px;\
  158. height: 1122px;\
  159. background: #fff;\
  160. margin: 0 auto;\
  161. font-weight: normal;\
  162. }\
  163. \
  164. .page-box .page-main {\
  165. height: 100%;\
  166. position: relative;\
  167. white-space: nowrap;\
  168. margin: 0 -10px;\
  169. }\
  170. \
  171. .page-box .page-main-3 .page-column:first-child {\
  172. width: 430px;\
  173. }\
  174. \
  175. .page-box .page-main-3 .page-column:not(:first-child) {\
  176. width: 508.5px;\
  177. }\
  178. \
  179. .page-box .page-main-4 .page-column:first-child {\
  180. width: 430px;\
  181. }\
  182. \
  183. .page-box .page-main-4 .page-column:not(:first-child) {\
  184. width: 335.5px;\
  185. }\
  186. \
  187. .page-box-1 .page-main-3 .page-column {\
  188. width: 33.33% !important;\
  189. }\
  190. \
  191. .page-box-1 .page-main-4 .page-column {\
  192. width: 25% !important;\
  193. }\
  194. \
  195. .page-main-inner {\
  196. position: absolute;\
  197. width: 100%;\
  198. height: 100%;\
  199. top: 0;\
  200. left: 0;\
  201. padding: 106px 80px;\
  202. z-index: 9;\
  203. font-size: 0;\
  204. }\
  205. \
  206. .page-main-outer {\
  207. position: absolute;\
  208. top: 0;\
  209. left: 0;\
  210. right: 0;\
  211. bottom: 0;\
  212. z-index: 8;\
  213. background-color: transparent;\
  214. overflow: hidden;\
  215. }\
  216. \
  217. .page-column {\
  218. display: inline-block;\
  219. vertical-align: middle;\
  220. position: relative;\
  221. height: 100%;\
  222. width: 50%;\
  223. font-size: 14px;\
  224. padding: 0 10px;\
  225. }\
  226. \
  227. .page-column-forbid-area {\
  228. position: absolute;\
  229. top: 0;\
  230. left: 0;\
  231. bottom: 0;\
  232. right: 0;\
  233. z-index: 1;\
  234. border: 1px solid #333;\
  235. overflow: hidden;\
  236. background: linear-gradient(\
  237. to top right,\
  238. rgba(172, 172, 172, 0) 0%,\
  239. rgba(172, 172, 172, 0) calc(50% - 1px),\
  240. #acacac 50%,\
  241. rgba(172, 172, 172, 0) calc(50% + 1px),\
  242. rgba(172, 172, 172, 0) 100%\
  243. ),\
  244. linear-gradient(\
  245. to bottom right,\
  246. rgba(172, 172, 172, 0) 0%,\
  247. rgba(172, 172, 172, 0) calc(50% - 1px),\
  248. #acacac 50%,\
  249. rgba(172, 172, 172, 0) calc(50% + 1px),\
  250. rgba(172, 172, 172, 0) 100%\
  251. );\
  252. }\
  253. \
  254. .page-column-forbid-area > p {\
  255. color: #333;\
  256. padding: 20px;\
  257. position: absolute;\
  258. top: 50%;\
  259. left: 50%;\
  260. -webkit-transform: translate(-50%, -50%);\
  261. transform: translate(-50%, -50%);\
  262. font-weight: bold;\
  263. font-size: 30px;\
  264. color: #999;\
  265. background-color: #fff;\
  266. }\
  267. \
  268. .page-column-main {\
  269. position: relative;\
  270. height: 100%;\
  271. overflow: hidden;\
  272. }\
  273. \
  274. .page-column-main\
  275. .page-column-element:nth-of-type(1)\
  276. .element-item-topic-head {\
  277. margin-top: 0;\
  278. }\
  279. \
  280. .page-column-body {\
  281. position: absolute;\
  282. top: 0;\
  283. bottom: 0;\
  284. left: 0;\
  285. right: 0;\
  286. z-index: 9;\
  287. }\
  288. \
  289. .page-column-element .element-item {\
  290. position: relative;\
  291. border: 1px solid #333;\
  292. border-top: 0;\
  293. }\
  294. \
  295. .page-column-element .element-item-card-head {\
  296. border: 0;\
  297. }\
  298. \
  299. .page-column-element .element-item-topic-head {\
  300. margin-top: 10px;\
  301. border-top: 1px solid #333;\
  302. }\
  303. \
  304. .page-locators {\
  305. position: absolute;\
  306. top: 106px;\
  307. left: 80px;\
  308. right: 80px;\
  309. bottom: 106px;\
  310. z-index: 8;\
  311. }\
  312. \
  313. .page-locators-4 .page-locator-group:nth-of-type(2) {\
  314. left: 33.3%;\
  315. margin-left: -4.5mm;\
  316. }\
  317. \
  318. .page-locators-4 .page-locator-group:nth-of-type(3) {\
  319. left: 66.6%;\
  320. margin-left: -2.3mm;\
  321. }\
  322. \
  323. .page-locators-5 .page-locator-group:nth-of-type(2) {\
  324. left: 25%;\
  325. margin-left: -5.1mm;\
  326. }\
  327. \
  328. .page-locators-5 .page-locator-group:nth-of-type(3) {\
  329. left: 50%;\
  330. margin-left: -3.4mm;\
  331. }\
  332. \
  333. .page-locators-5 .page-locator-group:nth-of-type(4) {\
  334. left: 75%;\
  335. margin-left: -1.8mm;\
  336. }\
  337. \
  338. .page-locator-group {\
  339. position: absolute;\
  340. top: 0;\
  341. bottom: 0;\
  342. width: 24px;\
  343. }\
  344. \
  345. .page-locator-group:first-child {\
  346. left: 0;\
  347. }\
  348. \
  349. .page-locator-group:nth-of-type(2) {\
  350. left: 50%;\
  351. margin-left: -12px;\
  352. }\
  353. \
  354. .page-locator-group:last-child {\
  355. right: 0;\
  356. }\
  357. \
  358. .page-locator-group li {\
  359. position: absolute;\
  360. width: 24px;\
  361. border-bottom: 16px solid #000;\
  362. z-index: 99;\
  363. }\
  364. \
  365. .page-locator-group li:first-child {\
  366. top: -46px;\
  367. }\
  368. \
  369. .page-locator-group li:last-child {\
  370. bottom: -46px;\
  371. }\
  372. \
  373. .elem-title {\
  374. padding: 10px 13px 20px;\
  375. font-size: 14px;\
  376. font-weight: bold;\
  377. color: black;\
  378. line-height: 1;\
  379. }\
  380. \
  381. .elem-body {\
  382. padding: 10px;\
  383. }\
  384. \
  385. .grid-container {\
  386. margin-left: -10px;\
  387. margin-right: -10px;\
  388. }\
  389. \
  390. .grid-row {\
  391. display: table;\
  392. width: 100%;\
  393. border-spacing: 10px 5px;\
  394. border-collapse: separate;\
  395. }\
  396. \
  397. .grid-row .grid-col {\
  398. display: table-cell;\
  399. width: 50%;\
  400. vertical-align: top;\
  401. border: 1px solid #333;\
  402. }\
  403. \
  404. .grid-row .grid-col-dash {\
  405. border-style: dashed;\
  406. vertical-align: middle;\
  407. }\
  408. \
  409. .card-head-top {\
  410. text-align: center;\
  411. }\
  412. \
  413. .card-head-title {\
  414. font-size: 36px;\
  415. font-family: "宋体";\
  416. font-weight: bold;\
  417. line-height: 48px;\
  418. }\
  419. \
  420. .card-head-subtitle textarea,\
  421. .card-head-subtitle > p {\
  422. height: 55px;\
  423. padding: 0 10px;\
  424. font-size: 14px;\
  425. font-family: "Helvetica Neue", Helvetica, "PingFang SC",\
  426. "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;\
  427. font-weight: bold;\
  428. line-height: 20px;\
  429. text-align: center;\
  430. border-color: transparent;\
  431. background-color: transparent;\
  432. color: #000;\
  433. overflow: hidden;\
  434. }\
  435. \
  436. .card-head-body {\
  437. font-weight: normal;\
  438. }\
  439. \
  440. .card-head-body .el-col {\
  441. padding-top: 5px;\
  442. padding-bottom: 5px;\
  443. }\
  444. \
  445. .card-head-body-spin {\
  446. padding: 5px 12px;\
  447. white-space: normal;\
  448. word-break: break-all;\
  449. }\
  450. \
  451. .card-head-body .stdinfo-item {\
  452. height: 34px;\
  453. line-height: 34px;\
  454. position: relative;\
  455. overflow: hidden;\
  456. }\
  457. \
  458. .card-head-body .stdinfo-item::after {\
  459. content: "";\
  460. display: block;\
  461. position: absolute;\
  462. width: 100%;\
  463. border-bottom: 1px solid #333;\
  464. bottom: 6px;\
  465. left: 0;\
  466. z-index: 1;\
  467. }\
  468. \
  469. .card-head-body .stdinfo-item > span {\
  470. z-index: 2;\
  471. display: block;\
  472. position: relative;\
  473. font-weight: bold;\
  474. font-size: 14px;\
  475. }\
  476. \
  477. .card-head-body .stdinfo-item > span:first-child {\
  478. float: left;\
  479. background-color: #fff;\
  480. width: 60px;\
  481. text-align: justify;\
  482. }\
  483. \
  484. .card-head-body .stdinfo-item > span:first-child::after {\
  485. content: "";\
  486. display: inline-block;\
  487. width: 100%;\
  488. height: 0;\
  489. line-height: 0;\
  490. }\
  491. \
  492. .card-head-body .stdinfo-item > span:nth-of-type(2) {\
  493. float: left;\
  494. width: 20px;\
  495. background-color: #fff;\
  496. }\
  497. \
  498. .card-head-body .stdinfo-item > span:last-child {\
  499. margin-left: 80px;\
  500. height: 100%;\
  501. overflow: hidden;\
  502. }\
  503. \
  504. .card-head-body .head-stdno {\
  505. height: 100%;\
  506. padding: 0;\
  507. }\
  508. \
  509. .card-head-body .head-stdno .stdno-empty {\
  510. font-weight: bold;\
  511. letter-spacing: 3px;\
  512. }\
  513. \
  514. .card-head-body .head-stdno .stdno-fill {\
  515. min-height: 286px;\
  516. height: 100%;\
  517. position: relative;\
  518. }\
  519. \
  520. .card-head-body .head-stdno .stdno-fill-rect {\
  521. font-size: 0;\
  522. height: 27px;\
  523. border-bottom: 1px solid #333;\
  524. }\
  525. \
  526. .card-head-body .head-stdno .stdno-fill-number {\
  527. display: inline-block;\
  528. vertical-align: top;\
  529. width: 7.692%;\
  530. height: 100%;\
  531. }\
  532. \
  533. .card-head-body .head-stdno .stdno-fill-number:not(:last-child) {\
  534. border-right: 1px solid #333;\
  535. }\
  536. \
  537. .card-head-body .head-stdno .stdno-fill-head {\
  538. position: absolute;\
  539. width: 100%;\
  540. height: 51px;\
  541. top: 0;\
  542. left: 0;\
  543. z-index: 9;\
  544. }\
  545. \
  546. .card-head-body .head-stdno .stdno-fill-head > h5 {\
  547. border-bottom: 1px solid #333;\
  548. line-height: 24px;\
  549. font-size: 16px;\
  550. font-weight: bold;\
  551. text-align: center;\
  552. }\
  553. \
  554. .card-head-body .head-stdno .stdno-fill-body {\
  555. position: absolute;\
  556. top: 0;\
  557. bottom: 0;\
  558. padding-top: 51px;\
  559. overflow: hidden;\
  560. display: table;\
  561. width: 100%;\
  562. }\
  563. \
  564. .card-head-body .head-stdno .stdno-fill-list {\
  565. display: table-cell;\
  566. width: 7.692%;\
  567. padding: 3px 0;\
  568. }\
  569. \
  570. .card-head-body .head-stdno .stdno-fill-option {\
  571. margin: 8px auto;\
  572. width: 20px;\
  573. height: 14px;\
  574. font-size: 12px;\
  575. line-height: 1;\
  576. text-align: center;\
  577. color: #666;\
  578. border: 1px solid #333;\
  579. }\
  580. \
  581. .card-head-body .head-stdno .stdno-auto-barcode {\
  582. height: 80px;\
  583. padding: 10px 0;\
  584. text-align: center;\
  585. }\
  586. \
  587. .card-head-body .head-stdno .stdno-auto-barcode > img {\
  588. height: 100%;\
  589. width: auto;\
  590. display: inline-block;\
  591. vertical-align: top;\
  592. }\
  593. \
  594. .card-head-body .head-notice > h4 {\
  595. font-weight: bold;\
  596. margin-bottom: 8px;\
  597. }\
  598. \
  599. .card-head-body .head-notice-cont {\
  600. line-height: 1.5;\
  601. font-size: 12px;\
  602. margin-bottom: 5px;\
  603. }\
  604. \
  605. .card-head-body .head-notice-cont > span {\
  606. display: block;\
  607. }\
  608. \
  609. .card-head-body .head-notice-cont > span:first-child {\
  610. width: 20px;\
  611. float: left;\
  612. }\
  613. \
  614. .card-head-body .head-notice-cont > span:last-child {\
  615. margin-left: 20px;\
  616. }\
  617. \
  618. .card-head-body .head-notice-exam-number-fill span {\
  619. display: inline;\
  620. }\
  621. \
  622. .card-head-body .head-notice-exam-number-fill span:first-child {\
  623. float: none;\
  624. }\
  625. \
  626. .card-head-body .head-notice-exam-number-fill span:last-child {\
  627. margin: 0;\
  628. }\
  629. \
  630. .card-head-body .head-dynamic {\
  631. padding: 0;\
  632. font-size: 12px;\
  633. border-spacing: 0;\
  634. border-collapse: collapse;\
  635. }\
  636. \
  637. .card-head-body .head-dynamic-part:not(:last-child) {\
  638. border-bottom: 1px solid #000;\
  639. }\
  640. \
  641. .card-head-body .head-dynamic-write {\
  642. padding: 5px 12px;\
  643. }\
  644. \
  645. .card-head-body .head-dynamic-write .stdinfo-item {\
  646. margin-bottom: 0;\
  647. }\
  648. \
  649. .card-head-body .head-dynamic-write > p {\
  650. line-height: 18px;\
  651. }\
  652. \
  653. .card-head-body .head-dynamic-missfill {\
  654. display: table;\
  655. width: 100%;\
  656. }\
  657. \
  658. .card-head-body .head-dynamic-miss {\
  659. padding: 10px;\
  660. display: table-cell;\
  661. vertical-align: middle;\
  662. width: 133px;\
  663. border-right: 1px solid #000;\
  664. }\
  665. \
  666. .card-head-body .head-dynamic-miss .head-dynamic-content {\
  667. height: 32px;\
  668. }\
  669. \
  670. .card-head-body .head-dynamic-miss span {\
  671. display: block;\
  672. }\
  673. \
  674. .card-head-body .head-dynamic-miss .dynamic-miss-title {\
  675. width: 32px;\
  676. float: left;\
  677. }\
  678. \
  679. .card-head-body .head-dynamic-miss .dynamic-miss-body {\
  680. margin-left: 32px;\
  681. padding-top: 8px;\
  682. text-align: center;\
  683. }\
  684. \
  685. .card-head-body .head-dynamic-fill {\
  686. display: table-cell;\
  687. vertical-align: middle;\
  688. padding: 10px;\
  689. }\
  690. \
  691. .card-head-body .head-dynamic-fill p {\
  692. line-height: 18px;\
  693. word-wrap: normal;\
  694. }\
  695. \
  696. .card-head-body .head-dynamic-fill p > span,\
  697. .card-head-body .head-dynamic-fill p > i {\
  698. display: inline-block;\
  699. vertical-align: middle;\
  700. -webkit-box-sizing: border-box;\
  701. box-sizing: border-box;\
  702. }\
  703. \
  704. .card-head-body .head-dynamic-fill p:first-child i {\
  705. width: 24px;\
  706. height: 14px;\
  707. background-color: #000;\
  708. }\
  709. \
  710. .card-head-body .head-dynamic-fill p:last-child > i {\
  711. width: 28px;\
  712. height: 14px;\
  713. border: 1px solid #000;\
  714. font-size: 14px;\
  715. font-weight: bold;\
  716. margin-right: 6px;\
  717. line-height: 12px;\
  718. text-align: center;\
  719. }\
  720. \
  721. .card-head-body .head-dynamic-fill p:last-child > i:last-child {\
  722. margin-right: 0;\
  723. }\
  724. \
  725. .card-head-body\
  726. .head-dynamic-fill\
  727. p:last-child\
  728. > i:nth-of-type(3)::before {\
  729. content: "";\
  730. display: inline-block;\
  731. vertical-align: top;\
  732. margin-left: -5px;\
  733. height: 100%;\
  734. width: 5px;\
  735. background-color: #000;\
  736. }\
  737. \
  738. .card-head-body\
  739. .head-dynamic-fill\
  740. p:last-child\
  741. > i:nth-of-type(4)::before {\
  742. content: "";\
  743. display: inline-block;\
  744. margin-top: 1px;\
  745. width: 10px;\
  746. height: 10px;\
  747. border-radius: 50%;\
  748. background-color: #000;\
  749. }\
  750. \
  751. .card-head-body .head-dynamic-rect {\
  752. display: inline-block;\
  753. width: 30px;\
  754. height: 14px;\
  755. border: 1px solid #000;\
  756. font-size: 12px;\
  757. text-align: center;\
  758. line-height: 1;\
  759. color: #666;\
  760. margin: 0 5px;\
  761. }\
  762. \
  763. .card-head-body .head-dynamic-aorb {\
  764. display: table;\
  765. width: 100%;\
  766. }\
  767. \
  768. .card-head-body .head-dynamic-aorb .dynamic-aorb-item {\
  769. display: table-cell;\
  770. vertical-align: middle;\
  771. text-align: center;\
  772. }\
  773. \
  774. .card-head-body .head-dynamic-aorb .dynamic-aorb-item:not(:last-child) {\
  775. border-right: 1px solid #333;\
  776. }\
  777. \
  778. .card-head-body .head-dynamic-aorb-fill .dynamic-aorb-item:first-child {\
  779. border: none;\
  780. }\
  781. \
  782. .card-head-body .head-dynamic-aorb .dynamic-aorb-title {\
  783. width: 83px;\
  784. }\
  785. \
  786. .card-head-body .head-dynamic-aorb .dynamic-aorb-info {\
  787. width: 50px;\
  788. font-size: 16px;\
  789. }\
  790. \
  791. .card-head-body .head-dynamic-aorb .dynamic-aorb-barcode img {\
  792. display: block;\
  793. padding: 10px 0;\
  794. position: relative;\
  795. margin: 0 auto;\
  796. height: 32px;\
  797. }\
  798. \
  799. .card-head-body .head-dynamic-aorb .dynamic-aorb-rects {\
  800. padding: 10px;\
  801. }\
  802. \
  803. .card-head-part {\
  804. border: 1px solid #333;\
  805. }\
  806. \
  807. .card-head-part:not(:last-child) {\
  808. margin-bottom: 10px;\
  809. }\
  810. \
  811. .card-head-normal .head-dynamic-1 .head-dynamic-part {\
  812. height: 100%;\
  813. }\
  814. \
  815. .card-head-narrow .head-stdno {\
  816. height: 138px;\
  817. }\
  818. \
  819. .card-head-narrow .head-stdno .stdno-auto {\
  820. position: relative;\
  821. top: 50%;\
  822. margin-top: -40px;\
  823. }\
  824. \
  825. .card-head-handle.card-head-narrow .head-stdno {\
  826. height: 286px;\
  827. }\
  828. \
  829. .card-head-body-auto-resize {\
  830. margin-left: -5px;\
  831. margin-right: -5px;\
  832. display: -webkit-box;\
  833. display: -ms-flexbox;\
  834. display: flex;\
  835. }\
  836. \
  837. .card-head-body-auto-resize.col-item-auto-height .card-head-body-spin {\
  838. height: auto;\
  839. }\
  840. \
  841. .card-head-body-auto-resize .head-dynamic-2 .head-dynamic-part {\
  842. height: auto;\
  843. }\
  844. \
  845. .card-head-body-auto-resize::before {\
  846. display: table;\
  847. content: "";\
  848. }\
  849. \
  850. .card-head-body-auto-resize .rect-col {\
  851. float: left;\
  852. height: 100%;\
  853. padding: 5px;\
  854. }\
  855. \
  856. .card-head-body-auto-resize .rect-col:first-child {\
  857. width: 324px;\
  858. }\
  859. \
  860. .card-head-body-auto-resize .rect-col:last-child {\
  861. width: 440px;\
  862. }\
  863. \
  864. .card-head-body-auto-resize .rect-col-item {\
  865. border: 1px solid #333;\
  866. }\
  867. \
  868. .card-head-body-auto-resize .rect-col-item:nth-of-type(2) {\
  869. margin-top: 10px;\
  870. }\
  871. \
  872. .card-head-body-auto-resize .rect-col-item-none {\
  873. border: none;\
  874. margin: 0 !important;\
  875. }\
  876. \
  877. .elem-topic-head {\
  878. text-align: center;\
  879. }\
  880. \
  881. .elem-topic-head > h3 {\
  882. font-size: 16px;\
  883. line-height: 28px;\
  884. border-bottom: 1px dotted #333;\
  885. }\
  886. \
  887. .elem-topic-head > p {\
  888. font-size: 12px;\
  889. line-height: 29px;\
  890. white-space: nowrap;\
  891. overflow: hidden;\
  892. text-overflow: ellipsis;\
  893. }\
  894. \
  895. .elem-line-horizontal {\
  896. height: 100%;\
  897. line-height: 10px;\
  898. }\
  899. \
  900. .elem-line-horizontal .line-body {\
  901. display: inline-block;\
  902. vertical-align: middle;\
  903. width: 100%;\
  904. border-bottom: 1px solid #000;\
  905. }\
  906. \
  907. .elem-line-vertical {\
  908. height: 100%;\
  909. text-align: center;\
  910. }\
  911. \
  912. .elem-line-vertical .line-body {\
  913. display: inline-block;\
  914. vertical-align: top;\
  915. height: 100%;\
  916. border-left: 1px solid #000;\
  917. }\
  918. \
  919. .elem-rect .rect-body {\
  920. position: absolute;\
  921. width: 100%;\
  922. height: 100%;\
  923. top: 0;\
  924. left: 0;\
  925. }\
  926. \
  927. .elem-text .text-body {\
  928. padding: 5px;\
  929. line-height: 1.4;\
  930. }\
  931. \
  932. .elem-text .text-body span {\
  933. white-space: pre-wrap;\
  934. word-wrap: normal;\
  935. word-break: break-all;\
  936. }\
  937. \
  938. .elem-text .text-body span.cont-variate {\
  939. color: #a0a0a0;\
  940. margin: 0 2px;\
  941. }\
  942. \
  943. .elem-barcode {\
  944. height: 100%;\
  945. border-color: transparent;\
  946. border-width: 1pt;\
  947. position: relative;\
  948. }\
  949. \
  950. .elem-barcode > img {\
  951. max-height: 100%;\
  952. max-width: 100%;\
  953. position: absolute;\
  954. top: 0;\
  955. bottom: 0;\
  956. left: 0;\
  957. right: 0;\
  958. margin: auto;\
  959. }\
  960. \
  961. .elem-image {\
  962. height: 100%;\
  963. border-color: transparent;\
  964. border-width: 1pt;\
  965. position: relative;\
  966. }\
  967. \
  968. .elem-image > p {\
  969. position: absolute;\
  970. color: #b0b0b0;\
  971. font-size: 30pt;\
  972. text-align: center;\
  973. left: 0;\
  974. width: 100%;\
  975. top: 50%;\
  976. -webkit-transform: translateY(-50%);\
  977. transform: translateY(-50%);\
  978. }\
  979. \
  980. .elem-image > img {\
  981. max-height: 100%;\
  982. max-width: 100%;\
  983. position: absolute;\
  984. top: 0;\
  985. bottom: 0;\
  986. left: 0;\
  987. right: 0;\
  988. margin: auto;\
  989. }\
  990. \
  991. .elem-fill-question {\
  992. white-space: normal;\
  993. }\
  994. \
  995. .elem-fill-question .elem-body {\
  996. padding: 10px 20px;\
  997. }\
  998. \
  999. .elem-fill-question .group-item {\
  1000. display: inline-block;\
  1001. vertical-align: top;\
  1002. font-size: 0;\
  1003. margin-bottom: 30px;\
  1004. }\
  1005. \
  1006. .elem-fill-question .question-item {\
  1007. font-size: 0;\
  1008. }\
  1009. \
  1010. .elem-fill-question .question-item:last-child {\
  1011. margin-bottom: 0 !important;\
  1012. }\
  1013. \
  1014. .elem-fill-question .option-item {\
  1015. display: inline-block;\
  1016. vertical-align: middle;\
  1017. padding: 0;\
  1018. width: 24px;\
  1019. height: 14px;\
  1020. text-align: center;\
  1021. font-size: 12px;\
  1022. line-height: 1;\
  1023. border: 1px solid #000;\
  1024. color: #666;\
  1025. -webkit-box-sizing: border-box;\
  1026. box-sizing: border-box;\
  1027. }\
  1028. \
  1029. .elem-fill-question .option-item:first-child {\
  1030. text-align: right;\
  1031. border-color: transparent;\
  1032. font-size: 12px;\
  1033. margin-right: 20px !important;\
  1034. color: #000;\
  1035. }\
  1036. \
  1037. .elem-fill-question .option-item:last-child {\
  1038. margin-right: 0 !important;\
  1039. }\
  1040. \
  1041. .elem-fill-question-vertical .question-item {\
  1042. display: inline-block;\
  1043. vertical-align: top;\
  1044. }\
  1045. \
  1046. .elem-fill-question-vertical .question-item:last-child {\
  1047. margin-right: 0 !important;\
  1048. }\
  1049. \
  1050. .elem-fill-question-vertical .option-item {\
  1051. display: block;\
  1052. }\
  1053. \
  1054. .elem-fill-question-vertical .option-item:first-child {\
  1055. padding: 0;\
  1056. text-align: center;\
  1057. }\
  1058. \
  1059. .elem-fill-question-vertical .option-item:last-child {\
  1060. margin-bottom: 0 !important;\
  1061. }\
  1062. \
  1063. .elem-fill-area .option-item {\
  1064. display: inline-block;\
  1065. vertical-align: middle;\
  1066. width: 30px;\
  1067. height: 16px;\
  1068. border: 1px solid #000;\
  1069. }\
  1070. \
  1071. .elem-fill-area .option-item:last-child {\
  1072. margin-right: 0 !important;\
  1073. }\
  1074. \
  1075. .elem-fill-area-vertical .option-item {\
  1076. display: block;\
  1077. }\
  1078. \
  1079. .elem-fill-area-vertical .option-item:last-child {\
  1080. margin-bottom: 0 !important;\
  1081. }\
  1082. \
  1083. .elem-fill-line {\
  1084. white-space: normal;\
  1085. }\
  1086. \
  1087. .elem-fill-line .elem-title {\
  1088. padding-bottom: 0;\
  1089. }\
  1090. \
  1091. .elem-fill-line .elem-body {\
  1092. font-size: 0;\
  1093. padding-bottom: 30px;\
  1094. }\
  1095. \
  1096. .elem-fill-line .elem-fill-quesiton {\
  1097. display: inline-block;\
  1098. vertical-align: top;\
  1099. position: relative;\
  1100. padding: 0 5px;\
  1101. font-size: 12px;\
  1102. }\
  1103. \
  1104. .elem-fill-line .elem-fill-quesiton li {\
  1105. height: 50px;\
  1106. border-bottom: 1px solid #000;\
  1107. position: relative;\
  1108. z-index: 8;\
  1109. }\
  1110. \
  1111. .elem-fill-line .elem-fill-quesiton > li:first-child {\
  1112. position: absolute;\
  1113. height: 100%;\
  1114. background-color: #fff;\
  1115. top: 0;\
  1116. left: 5px;\
  1117. z-index: 9;\
  1118. padding-top: 30px;\
  1119. border: none;\
  1120. }\
  1121. \
  1122. .elem-explain-children .elem-title {\
  1123. padding-bottom: 0;\
  1124. }\
  1125. \
  1126. .elem-explain-children .elem-body {\
  1127. min-height: 60px;\
  1128. position: relative;\
  1129. }\
  1130. \
  1131. .elem-explain-children .elem-explain-no {\
  1132. position: absolute;\
  1133. left: 20px;\
  1134. top: 10px;\
  1135. font-size: 12px;\
  1136. z-index: 9;\
  1137. }\
  1138. \
  1139. .elem-explain-children .elem-explain-elements {\
  1140. position: absolute;\
  1141. width: 100%;\
  1142. height: 100%;\
  1143. top: 0;\
  1144. left: 0;\
  1145. z-index: 8;\
  1146. }\
  1147. \
  1148. .elem-explain-children .explain-children-element .explain-element {\
  1149. position: absolute;\
  1150. }\
  1151. \
  1152. .elem-composition .elem-body {\
  1153. padding: 0;\
  1154. }\
  1155. \
  1156. .elem-composition-lines {\
  1157. padding: 10px;\
  1158. }\
  1159. \
  1160. .elem-composition-lines li {\
  1161. height: 50px;\
  1162. border-bottom: 1px solid #000;\
  1163. }\
  1164. \
  1165. .elem-composition-elements {\
  1166. padding: 5px 0;\
  1167. }\
  1168. \
  1169. .elem-composition .composition-element-item {\
  1170. position: relative;\
  1171. }\
  1172. ';
  1173. export default domeStr => {
  1174. return `
  1175. <!DOCTYPE html>
  1176. <html>
  1177. <head>
  1178. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  1179. <meta name="viewport" content="width=device-width,initial-scale=1.0,
  1180. maximum-scale=1.0,minimum-scale=1.0, user-scalable=no" "="">
  1181. <meta name=" renderer" content="webkit|ie-comp|ie-stand" />
  1182. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  1183. <title>教务处平台题卡</title>
  1184. </head>
  1185. <style>${css}</style>
  1186. <body>${domeStr}</body>
  1187. </html>
  1188. `;
  1189. };