rem.htm 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <#def title = "使用rem"/>
  2. <#def keyword = "ZhiqimUI"/>
  3. <#def desc = "ZmUI整体风格使用rem作为长度单位,它是相对于html元素的font-size的一个单位。建议大家对需要适应页面大小的任何元素都使用rem为单位来定义。"/>
  4. <#def prevUrl = "css.htm"/>
  5. <#def nextUrl = "color.htm"/>
  6. ${zhiqim_com_head()}
  7. ${zhiqim_com_head_main()}
  8. ${zhiqim_com_head_end()}
  9. ${zhiqim_com_mobileUI_scrollJs()}
  10. ${zhiqim_com_body()}
  11. ${zhiqim_com_topnav("ui")}
  12. <!--容器开始 -->
  13. <div id="container" class="container">
  14. ${zhiqim_com_container_ui("ZmUI", "css", "rem")}
  15. <!--主体-->
  16. <div id="mainbody" class="mainbody">
  17. ${zhiqim_com_breadcrumb("UI", "ZmUI", "全局CSS定义", "使用rem")}
  18. <!-- content开始 -->
  19. <div id="mobileUI_content" class="content">
  20. <!-- 左侧详情 -->
  21. <div class="mobileUI-left">
  22. <#-- 标题 -->
  23. <div class="z-relative-left z-w100p z-pd16 z-bg-blue z-px18 z-lh200p z-bold" style="border-left:5px solid #4bacc6">
  24. <p class="z-text-blue">使用rem:</p>
  25. <p class="z-color-333" style="text-indent:38px;">
  26. ZmUI整体风格使用 rem 作为长度单位,它是相对于 html 元素的 font-size 的一个单位。建议大家对需要适应页面大小的任何元素都使用 rem 为单位来定义。<br>
  27. 关于其定义,可以参考 <a class="zi-text-blue z-weight-normal" href="https://developer.mozilla.org/en-US/docs/Web/CSS/length" target="_blank">MDN上的定义</a>。
  28. </p>
  29. </div>
  30. <#-- HTML 标签的 font-size 定义 -->
  31. <div class="tutorial title">HTML 标签的 font-size 定义</div>
  32. <div class="z-float-left z-w100p z-lh200p">
  33. <div class="z-pd10 z-px18 z-lh200p">一、以 iphone6 为基准</div>
  34. <div class="z-pd10 z-px16">
  35. 以 iphone6 的屏宽 375 作为媒体查询 font-size 计算的标准,再向更大更小进行变化;<br>
  36. 此时 html 标签的 font-size 为 100px,默认字体大小为 .16rem(16px),所有以 rem 定义的大小、长度均以此为基准进行计算。</div>
  37. </div>
  38. <div class="z-float-left z-w100p">
  39. <div class="z-pd10 z-px18 z-lh200p">二、媒体查询计算 font-size</div>
  40. <div class="z-pd10">
  41. <span class="z-text-prewrap z-pre">
  42. @media screen and (max-width: 320px) {
  43. html {
  44. font-size:83.33px;
  45. font-size:26.66667vw
  46. }
  47. }
  48. ...
  49. @media screen and (min-width: 376px) and (max-width:393px) {
  50. html {
  51. font-size:104.8px;
  52. font-size:26.66667vw
  53. }
  54. }
  55. ...
  56. @media screen and (min-width: 769px) {
  57. html {
  58. font-size:204.8px
  59. }
  60. }
  61. </span>
  62. </div>
  63. </div>
  64. <#-- 通用的字体大小定义 -->
  65. <div class="tutorial title">通用的字体大小定义</div>
  66. <div class="tutorial z-relative-left z-text-black z-pd-t3" style="font-size:16px;line-height:250%;">
  67. <ul>
  68. <li>暂时保留 ZhiqimUI 中 px 的定义,如:z-px12、zi-px20。</li>
  69. <li>新增 rem 的定义方式,如:z-rem12、zi-rem20,分别表示 font-size:.12rem 和 font-size:.2rem !important。</li>
  70. </ul>
  71. <span class="z-text-prewrap z-pre">
  72. .z-px10{font-size:10px;}
  73. .z-px11{font-size:11px;}
  74. .z-px12{font-size:12px;}
  75. .z-px13{font-size:13px;}
  76. .z-px14{font-size:14px;}
  77. .z-px15{font-size:15px;}
  78. .z-px16{font-size:16px;}
  79. .z-px17{font-size:17px;}
  80. .z-px18{font-size:18px;}
  81. .z-px19{font-size:19px;}
  82. .z-px20{font-size:20px;}
  83. .z-px22{font-size:22px;}
  84. .z-px24{font-size:24px;}
  85. .z-px26{font-size:26px;}
  86. .z-px30{font-size:30px;}
  87. .z-px40{font-size:40px;}
  88. .z-px50{font-size:50px;}
  89. .zi-px10{font-size:10px !important;}
  90. ...
  91. .zi-px50{font-size:50px !important;}
  92. .z-rem12{font-size:.12rem;}
  93. .z-rem13{font-size:.13rem;}
  94. .z-rem14{font-size:.14rem;}
  95. .z-rem15{font-size:.15rem;}
  96. .z-rem16{font-size:.16rem;}
  97. .z-rem17{font-size:.17rem;}
  98. .z-rem18{font-size:.18rem;}
  99. .z-rem19{font-size:.19rem;}
  100. .z-rem20{font-size:.2rem;}
  101. .z-rem22{font-size:.22rem;}
  102. .z-rem24{font-size:.24rem;}
  103. .z-rem25{font-size:.25rem;}
  104. .z-rem26{font-size:.26rem;}
  105. .z-rem28{font-size:.28rem;}
  106. .z-rem30{font-size:.3rem;}
  107. .z-rem32{font-size:.32rem;}
  108. .z-rem35{font-size:.35rem;}
  109. .z-rem36{font-size:.36rem;}
  110. .z-rem40{font-size:.4rem;}
  111. .z-rem50{font-size:.50rem;}
  112. .zi-rem12{font-size:.12rem !important;}
  113. ...
  114. .zi-rem50{font-size:.50rem !important;}
  115. </span>
  116. </div>
  117. <#-- width 和 height 定义 -->
  118. <div class="tutorial title">width 和 height 定义</div>
  119. <div class="tutorial z-relative-left z-text-black z-pd-t3" style="font-size:16px;line-height:250%;">
  120. <ul>
  121. <li>原 ZhiqimUI 中的定义具体数值的 z-w*、z-h* ,如: z-w100、z-h100;统一改成用 z- 前缀,单位为 rem,如: z-w100、z-h100。</li>
  122. <li>原 ZhiqimUI 中的定义百分比的 z-w5p、z-h50p 保留。</li>
  123. </ul>
  124. <span class="z-text-prewrap z-pre">
  125. .z-w0{width:0;}
  126. .z-w10{width:.1rem;}.z-w12{width:.12rem;}
  127. .z-w14{width:.14rem;}.z-w15{width:.15rem;}
  128. .z-w16{width:.16rem;}.z-w18{width:.18rem;}
  129. .z-w20{width:.2rem;}.z-w22{width:.22rem;}
  130. .z-w24{width:.24rem;}.z-w25{width:.25rem;}
  131. .z-w28{width:.28rem;}.z-w30{width:.3rem;}
  132. .z-w35{width:.35rem;}.z-w40{width:.4rem;}
  133. .z-w45{width:.45rem;}.z-w50{width:.5rem;}
  134. .z-w55{width:.55rem;}.z-w60{width:.6rem;}
  135. .z-w65{width:.65rem;}.z-w70{width:.7rem;}
  136. .z-w75{width:.75rem;}.z-w80{width:.8rem;}
  137. .z-w85{width:.85rem;}.z-w90{width:.9rem;}
  138. .z-w95{width:.95rem;}.z-w100{width:1rem;}
  139. .z-w110{width:1.1rem;}.z-w120{width:1.2rem;}
  140. .z-w130{width:1.3rem;}.z-w140{width:1.4rem;}
  141. .z-w150{width:1.5rem;}.z-w160{width:1.6rem;}
  142. .z-w170{width:1.7rem;}.z-w180{width:1.8rem;}
  143. .z-w190{width:1.9rem;}.z-w200{width:2rem;}
  144. .z-w230{width:2.3rem;}.z-w250{width:2.5rem;}
  145. .z-w270{width:2.7rem;}.z-w300{width:3rem;}
  146. .z-w400{width:4rem;}.z-w500{width:5rem;}
  147. .z-w600{width:6rem;}.z-w700{width:7rem;}
  148. .z-w800{width:8rem;}
  149. .zi-w0{width:0 !important;}
  150. ...
  151. .zi-w800{width:8rem !important;}
  152. .z-w5p{width:5%;}.z-w8p{width:8%;}
  153. .z-w10p{width:10%;}.z-w12p{width:12%;}
  154. .z-w15p{width:15%;}.z-w30p{width:30%;}
  155. .z-w40p{width:40%;}.z-w60p{width:60%;}
  156. .z-w70p{width:70%;}.z-w80p{width:80%;}
  157. .z-w90p{width:90%;}.z-w100p{width:100%;}
  158. .z-w100p2,.z-w50p{width:50%;}
  159. .z-w100p3{width:33.333333%;}
  160. .z-w100p4,.z-w25p{width:25%;}
  161. .z-w100p5,.z-w20p{width:20%;}
  162. .z-w100p6{width:16.666666%;}
  163. .z-w100p7{width:14.285714%;}
  164. .z-w100p8{width:12.5%;}
  165. .z-w100p9{width:11.111111%;}
  166. .zi-w5p{width:5% !important;}.zi-w8p{width:8% !important;}
  167. ...
  168. .zi-w100p9{width:11.111111% !important;}
  169. .z-h0{height:0;}
  170. .z-h10{height:.1rem;}.z-h12{height:.12rem;}
  171. .z-h14{height:.14rem;}.z-h15{height:.15rem;}
  172. .z-h16{height:.16rem;}.z-h18{height:.18rem;}
  173. .z-h20{height:.2rem;}.z-h22{height:.22rem;}
  174. .z-h24{height:.24rem;}.z-h25{height:.25rem;}
  175. .z-h28{height:.28rem;}.z-h30{height:.3rem;}
  176. .z-h32{height:.32rem;}.z-h35{height:.35rem;}
  177. .z-h40{height:.4rem;}.z-h45{height:.45rem;}
  178. .z-h50{height:.5rem;}.z-h55{height:.55rem;}
  179. .z-h60{height:.6rem;}.z-h65{height:.65rem;}
  180. .z-h70{height:.7rem;}.z-h75{height:.75rem;}
  181. .z-h80{height:.8rem;}.z-h85{height:.85rem;}
  182. .z-h90{height:.9rem;}.z-h95{height:.95rem;}
  183. .z-h100{height:1rem;}.z-h110{height:1.1rem;}
  184. .z-h120{height:1.2rem;}.z-h130{height:1.3rem;}
  185. .z-h140{height:1.4rem;}.z-h150{height:1.5rem;}
  186. .z-h160{height:1.6rem;}.z-h170{height:1.7rem;}
  187. .z-h180{height:1.8rem;}.z-h190{height:1.9rem;}
  188. .z-h200{height:2rem;}.z-h300{height:3rem;}
  189. .z-h400{height:4rem;}.z-h500{height:5rem;}
  190. .zi-h0{height:0 !important;}
  191. ...
  192. .zi-h400{height:4rem !important;}.zi-h500{height:5rem !important;}
  193. .z-h5p{height:5%;}.z-h8p{height:8%;}
  194. .z-h10p{height:10%;}.z-h12p{height:12%;}
  195. .z-h15p{height:15%;}.z-h20p{height:20%;}
  196. .z-h30p{height:30%;}.z-h40p{height:40%;}
  197. .z-h50p{height:50%;}.z-h60p{height:60%;}
  198. .z-h70p{height:70%;}.z-h80p{height:80%;}
  199. .z-h90p{height:90%;}.z-h100p{height:100%;}
  200. .zi-h5p{height:5% !important;}.zi-h8p{height:8% !important;}
  201. ...
  202. .zi-h90p{height:90% !important;}.zi-h100p{height:100% !important;}
  203. </span>
  204. </div>
  205. <#-- 行高 -->
  206. <div class="tutorial title">行高</div>
  207. <div class="tutorial z-relative-left z-text-black z-pd-t3" style="font-size:16px;line-height:250%;">
  208. <ul>
  209. <li>原 ZhiqimUI 中的定义具体数值的 z-lh*,如: z-lh15;统一改成用 z- 前缀,单位为 rem,如:z-lh15。</li>
  210. <li>原 ZhiqimUI 中的定义百分比的 z-lh100p、zi-lh50p 保留。</li>
  211. </ul>
  212. <span class="z-text-prewrap z-pre">
  213. .z-lh0{line-height:0;}.z-lh10{line-height:.1rem;}
  214. .z-lh12{line-height:.12rem;}.z-lh14{line-height:.14rem;}
  215. .z-lh15{line-height:.15rem;}.z-lh16{line-height:.16rem;}
  216. .z-lh18{line-height:.18rem;}.z-lh20{line-height:.2rem;}
  217. .z-lh22{line-height:.22rem;}.z-lh24{line-height:.24rem;}
  218. .z-lh25{line-height:.25rem;}.z-lh28{line-height:.28rem;}
  219. .z-lh30{line-height:.3rem;}.z-lh32{line-height:.32rem;}
  220. .z-lh35{line-height:.35rem;}.z-lh40{line-height:.4rem;}
  221. .z-lh45{line-height:.45rem;}.z-lh50{line-height:.5rem;}
  222. .z-lh55{line-height:.55rem;}.z-lh60{line-height:.6rem;}
  223. .z-lh70{line-height:.7rem;}.z-lh80{line-height:.8rem;}
  224. .z-lh90{line-height:.9rem;}.z-lh100{line-height:1rem;}
  225. .zi-lh0{line-height:0 !important;}.zi-lh10{line-height:.1rem !important;}
  226. ...
  227. .zi-lh90{line-height:.9rem !important;}.zi-lh100{line-height:1rem !important;}
  228. .z-lh100p{line-height:100%;}.z-lh110p{line-height:110%;}
  229. .z-lh120p{line-height:120%;}.z-lh130p{line-height:130%;}
  230. .z-lh140p{line-height:140%;}.z-lh150p{line-height:150%;}
  231. .z-lh180p{line-height:180%;}.z-lh200p{line-height:200%;}
  232. .z-lh250p{line-height:250%;}.z-lh300p{line-height:300%;}
  233. .zi-lh100p{line-height:100% !important;}.zi-lh110p{line-height:110% !important;}
  234. .zi-lh120p{line-height:120% !important;}.zi-lh130p{line-height:130% !important;}
  235. .zi-lh140p{line-height:140% !important;}.zi-lh150p{line-height:150% !important;}
  236. .zi-lh180p{line-height:180% !important;}.zi-lh200p{line-height:200% !important;}
  237. .zi-lh250p{line-height:250% !important;}.zi-lh300p{line-height:300% !important;}
  238. </span>
  239. </div>
  240. <#-- 内边距和外边距 -->
  241. <div class="tutorial title">内边距和外边距</div>
  242. <div class="tutorial z-relative-left z-text-black z-pd-t3" style="font-size:16px;line-height:250%;">
  243. <ul>
  244. <li>原 ZhiqimUI 中的定义具体数值的 z-pd*、z-pd-l*、z-mg*、z-mg-r* ,如: z-pd5、z-pd-l5、z-mg10、z-mg-t-10;统一改成用 z- 前缀,单位为 rem。</li>
  245. <li>新增 z-pd-lr*、z-pd-tb*、z-mg-lr*、z-mg-tb* 表示左右、上下的边距统一设置。</li>
  246. <li>针对 1px 边框,可能存在的 负偏移,新增 z-mg-t-1px 表示向上偏移 -1px;left、right、bottom方向同理。</li>
  247. <li>外边距新增 auto属性。</li>
  248. </ul>
  249. <span class="z-text-prewrap z-pre">
  250. .z-pd0{padding:0;}.z-pd1{padding:.01rem;}
  251. .z-pd2{padding:.02rem;}.z-pd3{padding:.03rem;}
  252. .z-pd4{padding:.04rem;}.z-pd5{padding:.05rem;}
  253. .z-pd6{padding:.06rem;}.z-pd7{padding:.07rem;}
  254. .z-pd8{padding:.08rem;}.z-pd9{padding:.09rem;}
  255. .z-pd10{padding:.1rem;}.z-pd12{padding:.12rem;}
  256. .z-pd14{padding:.14rem;}.z-pd15{padding:.15rem;}
  257. .z-pd16{padding:.16rem;}.z-pd18{padding:.18rem;}
  258. .z-pd20{padding:.2rem;}.z-pd24{padding:.24rem;}
  259. .z-pd25{padding:.25rem;}.z-pd26{padding:.25rem;}
  260. .z-pd28{padding:.28rem;}.z-pd30{padding:.3rem;}
  261. .zi-pd0{padding:0 !important;}.zi-pd1{padding:.01rem !important;}
  262. ...
  263. .zi-pd28{padding:.28rem !important;}.zi-pd30{padding:.3rem !important;}
  264. .z-pd-l0{padding-left:0;}.z-pd-l1{padding-left:.01rem;}
  265. .z-pd-l2{padding-left:.02rem;}.z-pd-l3{padding-left:.03rem;}
  266. .z-pd-l4{padding-left:.04rem;}.z-pd-l5{padding-left:.05rem;}
  267. .z-pd-l6{padding-left:.06rem;}.z-pd-l7{padding-left:.07rem;}
  268. .z-pd-l8{padding-left:.08rem;}.z-pd-l9{padding-left:.09rem;}
  269. .z-pd-l10{padding-left:.1rem;}.z-pd-l12{padding-left:.12rem;}
  270. .z-pd-l14{padding-left:.14rem;}.z-pd-l15{padding-left:.15rem;}
  271. .z-pd-l16{padding-left:.16rem;}.z-pd-l18{padding-left:.18rem;}
  272. .z-pd-l20{padding-left:.2rem;}.z-pd-l24{padding-left:.24rem;}
  273. .z-pd-l25{padding-left:.25rem;}.z-pd-l26{padding-left:.25rem;}
  274. .z-pd-l28{padding-left:.28rem;}.z-pd-l30{padding-left:.3rem;}
  275. .zi-pd-l0{padding-left:0 !important;}.zi-pd-l1{padding-left:.01rem !important;}
  276. ...
  277. .zi-pd-l28{padding-left:.28rem !important;}.zi-pd-l30{padding-left:.3rem !important;}
  278. ...为省略篇幅,类似代码省略...
  279. .z-pd-lr0{padding-left:0;padding-right:0;}.z-pd-lr1{padding-left:.01rem;padding-right:.01rem;}
  280. .z-pd-lr2{padding-left:.02rem;padding-right:.02rem;}.z-pd-lr3{padding-left:.03rem;padding-right:.03rem;}
  281. .z-pd-lr4{padding-left:.04rem;padding-right:.04rem;}.z-pd-lr5{padding-left:.05rem;padding-right:.05rem;}
  282. .z-pd-lr6{padding-left:.06rem;padding-right:.06rem;}.z-pd-lr7{padding-left:.07rem;padding-right:.07rem;}
  283. .z-pd-lr8{padding-left:.08rem;padding-right:.08rem;}.z-pd-lr9{padding-left:.09rem;padding-right:.09rem;}
  284. .z-pd-lr10{padding-left:.1rem;padding-right:.1rem;}.z-pd-lr12{padding-left:.12rem;padding-right:.12rem;}
  285. .z-pd-lr14{padding-left:.14rem;padding-right:.14rem;}.z-pd-lr15{padding-left:.15rem;padding-right:.15rem;}
  286. .z-pd-lr16{padding-left:.16rem;padding-right:.16rem;}.z-pd-lr18{padding-left:.18rem;padding-right:.18rem;}
  287. .z-pd-lr20{padding-left:.2rem;padding-right:.2rem;}.z-pd-lr24{padding-left:.24rem;padding-right:.24rem;}
  288. .z-pd-lr25{padding-left:.25rem;padding-right:.25rem;}.z-pd-lr26{padding-left:.25rem;padding-right:.25rem;}
  289. .z-pd-lr28{padding-left:.28rem;padding-right:.28rem;}.z-pd-lr30{padding-left:.3rem;padding-right:.3rem;}
  290. .zi-pd-lr0{padding-left:0 !important;padding-right:0 !important;}.zi-pd-lr1{padding-left:.01rem !important;padding-right:.01rem !important;}
  291. ...
  292. .zi-pd-lr28{padding-left:.28rem !important;padding-right:.28rem !important;}.zi-pd-lr30{padding-left:.3rem !important;padding-right:.3rem !important;}
  293. ...为省略篇幅,类似代码省略...
  294. .z-mg-0{margin:0;}.z-mg1{margin:.01rem;}
  295. .z-mg2{margin:.02rem;}.z-mg3{margin:.03rem;}
  296. .z-mg4{margin:.04rem;}.z-mg5{margin:.05rem;}
  297. .z-mg6{margin:.06rem;}.z-mg7{margin:.07rem;}
  298. .z-mg8{margin:.08rem;}.z-mg9{margin:.09rem;}
  299. .z-mg10{margin:.1rem;}.z-mg12{margin:.12rem;}
  300. .z-mg14{margin:.14rem;}.z-mg15{margin:.15rem;}
  301. .z-mg16{margin:.16rem;}.z-mg18{margin:.18rem;}
  302. .z-mg20{margin:.2rem;}.z-mg24{margin:.24rem;}
  303. .z-mg25{margin:.25rem;}.z-mg26{margin:.25rem;}
  304. .z-mg28{margin:.28rem;}.z-mg30{margin:.3rem;}
  305. .zi-mg0{margin:0 !important;}.zi-mg1{margin:.01rem !important;}
  306. ...
  307. .zi-mg28{margin:.28rem !important;}.zi-mg30{margin:.3rem !important;}
  308. .z-mg-t0{margin-top:0;}.z-mg-t1{margin-top:.01rem;}
  309. .z-mg-t2{margin-top:.02rem;}.z-mg-t3{margin-top:.03rem;}
  310. .z-mg-t4{margin-top:.04rem;}.z-mg-t5{margin-top:.05rem;}
  311. .z-mg-t6{margin-top:.06rem;}.z-mg-t7{margin-top:.07rem;}
  312. .z-mg-t8{margin-top:.08rem;}.z-mg-t9{margin-top:.09rem;}
  313. .z-mg-t10{margin-top:.1rem;}.z-mg-t12{margin-top:.12rem;}
  314. .z-mg-t14{margin-top:.14rem;}.z-mg-t15{margin-top:.15rem;}
  315. .z-mg-t16{margin-top:.16rem;}.z-mg-t18{margin-top:.18rem;}
  316. .z-mg-t20{margin-top:.2rem;}.z-mg-t24{margin-top:.24rem;}
  317. .z-mg-t25{margin-top:.25rem;}.z-mg-t26{margin-top:.25rem;}
  318. .z-mg-t28{margin-top:.28rem;}.z-mg-t30{margin-top:.3rem;}
  319. .zi-mg-t0{margin-top:0 !important;}.zi-mg-t1{margin-top:.01rem !important;}
  320. ...
  321. .zi-mg-t28{margin-top:.28rem !important;}.zi-mg-t30{margin-top:.3rem !important;}
  322. ...为省略篇幅,类似代码省略...
  323. .z-mg-t-1{margin-top:-.01rem;}.z-mg-t-2{margin-top:-.02rem;}
  324. .z-mg-t-3{margin-top:-.03rem;}.z-mg-t-4{margin-top:-.04rem;}
  325. .z-mg-t-5{margin-top:-.05rem;}.z-mg-t-6{margin-top:-.06rem;}
  326. .z-mg-t-7{margin-top:-.07rem;}.z-mg-t-8{margin-top:-.08rem;}
  327. .z-mg-t-9{margin-top:-.09rem;}.z-mg-t-10{margin-top:-.1rem;}
  328. .z-mg-t-12{margin-top:-.12rem;}.z-mg-t-14{margin-top:-.14rem;}
  329. .z-mg-t-15{margin-top:-.15rem;}.z-mg-t-16{margin-top:-.16rem;}
  330. .z-mg-t-18{margin-top:-.18rem;}.z-mg-t-20{margin-top:-.2rem;}
  331. .z-mg-t-24{margin-top:-.24rem;}.z-mg-t-25{margin-top:-.25rem;}
  332. .z-mg-t-26{margin-top:-.25rem;}.z-mg-t-28{margin-top:-.28rem;}
  333. .z-mg-t-30{margin-top:-.3rem;}
  334. .zi-mg-t-1{margin-top:-.01rem !important;}.zi-mg-t-2{margin-top:-.02rem !important;}
  335. ...
  336. .zi-mg-t-30{margin-top:-.3rem !important;}
  337. ...为省略篇幅,类似代码省略...
  338. .z-mg-t-1px{margin-top:-1px;}
  339. .z-mg-r-1px{margin-right:-1px;}
  340. .z-mg-l-1px{margin-left:-1px;}
  341. .z-mg-b-1px{margin-bottom:-1px;}
  342. .zi-mg-t-1px{margin-top:-1px !important;}
  343. .zi-mg-r-1px{margin-right:-1px !important;}
  344. .zi-mg-l-1px{margin-left:-1px !important;}
  345. .zi-mg-b-1px{margin-bottom:-1px !important;}
  346. .z-mg-auto{margin:auto;}
  347. .z-mg-l-auto{margin-left:auto;}
  348. .z-mg-r-auto{margin-right:auto;}
  349. .z-mg-t-auto{margin-top:auto;}
  350. .z-mg-b-auto{margin-bottom:auto;}
  351. .z-mg-lr-auto{margin-left:auto;margin-right:auto;}
  352. .z-mg-tb-auto{margin-top:auto;margin-bottom:auto;}
  353. .zi-mg-auto{margin:auto !important;}
  354. .zi-mg-l-auto{margin-left:auto !important;}
  355. .zi-mg-r-auto{margin-right:auto !important;}
  356. .zi-mg-t-auto{margin-top:auto !important;}
  357. .zi-mg-b-auto{margin-bottom:auto !important;}
  358. .zi-mg-lr-auto{margin-left:auto !important;margin-right:auto !important;}
  359. .zi-mg-tb-auto{margin-top:auto !important;margin-bottom:auto !important;}
  360. </span>
  361. </div>
  362. <!-- 右侧demo ZmUI代码 -->
  363. ${zhiqim_turorial_ZmUI_demo_start()}
  364. <div class="z-bar-top">
  365. <a href="#" class="z-left"><i class="z-font z-rem18 z-arrowhead-left"></i></a>
  366. <div class="z-title">ZhiqimUI.mobile</div>
  367. </div>
  368. <div class="z-bar-bottom">
  369. <a href="#" class="z-direction-column z-active"><i class="z-font z-apps"></i><span class="z-mg-t3">文案</span></a>
  370. <a href="#" class="z-direction-column"><i class="z-font z-apps"></i><span class="z-mg-t3">文案</span></a>
  371. <a href="#" class="z-direction-column"><i class="z-font z-apps"></i><span class="z-mg-t3">文案</span></a>
  372. <a href="#" class="z-direction-column"><i class="z-font z-apps"></i><span class="z-mg-t3">文案</span></a>
  373. </div>
  374. <div class="z-container">
  375. <div class="z-flexBox-list z-h100p"><div class="z-rem30 z-text-center">这里是内容</div></div>
  376. </div>
  377. ${zhiqim_turorial_ZmUI_demo_end()}
  378. <!-- content结束 -->
  379. </div>
  380. ${zhiqim_com_chapter()}
  381. <!-- 主体结束 -->
  382. </div>
  383. <!-- 容器结束 -->
  384. </div>
  385. ${zhiqim_com_footer()}