https://mdnice.com/

    微信排版 - 图1

    https://www.flaticon.com/free-icon/robot_2532682

    1. /*自定义样式,实时生效*/
    2. /*初始化格式*/
    3. #nice {
    4. line-height: 1.1;
    5. letter-spacing: .034em;
    6. color: rgb(63, 63, 63);
    7. font-size: 14px;
    8. word-break:all;
    9. }
    10. #nice p {
    11. padding-top: 20px;
    12. color: rgb(74,74,74);
    13. line-height: 1.75em;
    14. }
    15. /* 一级标题 */
    16. #nice h1 {
    17. text-align:center;
    18. background-image: url(https://my-wechat.mdnice.com/mdnice/mountain_2_20191028221337.png);
    19. background-position: center top;
    20. background-repeat: no-repeat;
    21. background-size: 95px;
    22. line-height:95px;
    23. margin-top: 38px;
    24. margin-bottom: 10px;
    25. }
    26. /* 一级标题内容 */
    27. #nice h1 .content {
    28. font-size: 20px;
    29. color: rgb(60, 112, 198);
    30. border-bottom:2px solid #3C7076;
    31. }
    32. /* 一级标题修饰 请参考有实例的主题 */
    33. #nice h1:after {
    34. }
    35. /* 二级标题 */
    36. #nice h2 {
    37. display:block;
    38. text-align:center;
    39. background-image: url(https://my-wechat.mdnice.com/mdnice/mountain_2_20191028221337.png);
    40. background-position: center center;
    41. background-repeat: no-repeat;
    42. background-attachment: initial;
    43. background-origin: initial;
    44. background-clip: initial;
    45. background-size: 63px;
    46. margin-top: 38px;
    47. margin-bottom: 10px;
    48. }
    49. /*二级标题伪元素*/
    50. #nice h2:before {
    51. }
    52. /* 二级标题内容 */
    53. #nice h2 .content {
    54. text-align:center;
    55. display: inline-block;
    56. height: 38px;
    57. line-height: 42px;
    58. color: rgb(60, 112, 198);
    59. background-position: left center;
    60. background-repeat: no-repeat;
    61. background-attachment: initial;
    62. background-origin: initial;
    63. background-clip: initial;
    64. background-size: 63px;
    65. margin-top: 38px;
    66. font-size:18px;
    67. margin-bottom: 10px;
    68. }
    69. /* 三级标题 */
    70. #nice h3:before {
    71. content: "";
    72. background-image:url(http://wx.qlogo.cn/mmopen/IGttIWBX0NanTjnyR33KPp4gEbiaO58EZOKgwSrYsYR9DC7w9lb6INdNGnjj9hiboMe8YZJkXfUX6K9jhHdpuh4FPasxgkopI0/64);
    73. background-size:15px 15px;
    74. display: inline-block;
    75. width: 15px;
    76. height: 15px;
    77. line-height:15px;
    78. margin-bottom:-1px;
    79. }
    80. #nice h3 {
    81. margin-bottom:-1px;
    82. text-align:center;
    83. }
    84. /* 三级标题内容 */
    85. #nice h3 .content {
    86. font-size:18px;
    87. font-weight:bold;
    88. display:inline-block;
    89. margin-left:8px;
    90. color:rgb(106, 168, 251);
    91. }
    92. /* 三级标题修饰 请参考有实例的主题 */
    93. #nice h3:after {
    94. }
    95. /* 四级标题 */
    96. #nice h4:before {
    97. content: "";
    98. background-image:url(https://cdn.nlark.com/yuque/0/2020/png/653487/1587125502165-314536ed-fa61-4337-9613-1101d037bc1a.png);
    99. background-size:15px 15px;
    100. display: inline-block;
    101. width: 15px;
    102. height: 15px;
    103. line-height:15px;
    104. margin-bottom:-1px;
    105. }
    106. /* 四级标题内容 */
    107. #nice h4 .content {
    108. background-image:url();
    109. font-size:16px;
    110. font-weight:bold;
    111. display:inline-block;
    112. margin-left:8px;
    113. color:rgb(110, 145, 232);
    114. }
    115. #nice h4 {
    116. margin-bottom:-1px;
    117. }
    118. /* 列表内容 */
    119. #nice li {
    120. }
    121. /* 引用
    122. * 左边缘颜色 border-left-color:black;
    123. * 背景色 background:gray;
    124. */
    125. #nice blockquote {
    126. padding: 5px 5px;
    127. line-height: 15px;
    128. background-color: rgb(238, 238, 238);
    129. border-left:none;
    130. display:block;
    131. }
    132. /* 引用文字 */
    133. #nice blockquote p {
    134. padding: 0px;
    135. font-size:15px;
    136. color:rgb(89,89,89);
    137. }
    138. /* 链接 */
    139. #nice a {
    140. color: rgb(60, 112, 198);
    141. text-decoration:none;
    142. border-bottom: 1px solid rgb(60, 112, 198);
    143. }
    144. /* 加粗 */
    145. #nice strong {
    146. line-height: 1.75em;
    147. color: rgb(74,74,74);
    148. }
    149. /* 斜体 */
    150. #nice em {
    151. }
    152. /* 加粗斜体 */
    153. #nice em strong {
    154. color:rgb(248,57,41);
    155. letter-spacing:0.3em;
    156. }
    157. /* 删除线 */
    158. #nice del {
    159. }
    160. /* 分割线 */
    161. #nice hr {
    162. height:1px;
    163. padding:0;
    164. border:none;
    165. text-align:center;
    166. background-image:linear-gradient(to right,rgba(60,122,198,0),rgba(60,122,198,0.75),rgba(60,122,198,0));
    167. }
    168. /* 图片 */
    169. #nice img {
    170. border-radius:4px;
    171. margin-bottom:25px;
    172. }
    173. /* 图片描述文字 */
    174. #nice figcaption {
    175. display:block;
    176. font-size:8px;
    177. font-family:PingFangSC-Light;
    178. }
    179. /* 行内代码 */
    180. #nice p code, #nice li code {
    181. color: rgb(60, 112, 198);;
    182. }
    183. /* 非微信代码块
    184. * 代码块不换行 display:-webkit-box !important;
    185. * 代码块换行 display:block;
    186. */
    187. #nice pre code {
    188. }
    189. /* 表格内的单元格
    190. * 字体大小 font-size: 16px;
    191. * 边框 border: 1px solid #ccc;
    192. * 内边距 padding: 5px 10px;
    193. */
    194. #nice table tr th,
    195. #nice table tr td {
    196. font-size: 14px;
    197. }
    198. #nice .footnotes{
    199. padding-top: 8px;
    200. }
    201. /* 脚注文字 */
    202. #nice .footnote-word {
    203. color: rgb(60, 112, 198);
    204. }
    205. /* 脚注上标 */
    206. #nice .footnote-ref {
    207. color: rgb(60, 112, 198);
    208. }
    209. /* 脚注超链接样式 */
    210. #nice .footnote-item em {
    211. color: rgb(60, 112, 198);
    212. font-size:13px;
    213. font-style:normal;
    214. border-bottom-color:1px dashed rgb(60, 112, 198);
    215. }
    216. /* "参考资料"四个字
    217. * 内容 content: "参考资料";
    218. */
    219. #nice .footnotes-sep:before {
    220. background-image: none;
    221. background-size: none;
    222. display: block;
    223. width: auto;
    224. height: auto;
    225. }
    226. /* 参考资料编号 */
    227. #nice .footnote-num {
    228. color: rgb(60, 112, 198);
    229. }
    230. /* 参考资料文字 */
    231. #nice .footnote-item p {
    232. color: rgb(60, 112, 198);
    233. font-weight:bold;
    234. }
    235. /* 参考资料超链接 */
    236. #nice .footnote-item a {
    237. color:rgb(60, 112, 198);
    238. }
    239. /* 参考资料解释 */
    240. #nice .footnote-item p em {
    241. font-size:14px;
    242. font-weight:normal;
    243. border-bottom:1px dashed rgb(60, 112, 198);
    244. }
    245. /* 行间公式
    246. * 最大宽度 max-width: 300% !important;
    247. */
    248. #nice .block-equation svg {
    249. max-width: 300%;
    250. }
    251. /* 行内公式*/
    252. #nice .inline-equation svg {
    253. }
    254. /* 滑动图片
    255. */
    256. #nice .imageflow-img {
    257. display: inline-block;
    258. width:100%;
    259. margin-bottom: 0;
    260. }