C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

209 lines
4.1 KiB

  1. /**
  2. * author: Di (微信小程序开发工程师)
  3. * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com)
  4. * 垂直微信小程序开发交流社区
  5. *
  6. * github地址: https://github.com/icindy/wxParse
  7. *
  8. * for: 微信小程序富文本解析
  9. * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184
  10. */
  11. .wxParse{
  12. margin: 0 5px;
  13. font-family: Helvetica,sans-serif;
  14. font-size: 28rpx;
  15. color: #666;
  16. line-height: 1.8;
  17. }
  18. view{
  19. word-break:break-all;
  20. overflow:auto;
  21. background: #FFF;
  22. }
  23. .wxParse-inline{
  24. display: inline;
  25. margin: 0;
  26. padding: 0;
  27. }
  28. /*//标题 */
  29. .wxParse-div{margin: 0;padding: 0;}
  30. .wxParse-h1{ font-size:2em; margin: .67em 0 }
  31. .wxParse-h2{ font-size:1.5em; margin: .75em 0 }
  32. .wxParse-h3{ font-size:1.17em; margin: .83em 0 }
  33. .wxParse-h4{ margin: 1.12em 0}
  34. .wxParse-h5 { font-size:.83em; margin: 1.5em 0 }
  35. .wxParse-h6{ font-size:.75em; margin: 1.67em 0 }
  36. .wxParse-h1 {
  37. font-size: 18px;
  38. font-weight: 400;
  39. margin-bottom: .9em;
  40. }
  41. .wxParse-h2 {
  42. font-size: 16px;
  43. font-weight: 400;
  44. margin-bottom: .34em;
  45. }
  46. .wxParse-h3 {
  47. font-weight: 400;
  48. font-size: 15px;
  49. margin-bottom: .34em;
  50. }
  51. .wxParse-h4 {
  52. font-weight: 400;
  53. font-size: 14px;
  54. margin-bottom: .24em;
  55. }
  56. .wxParse-h5 {
  57. font-weight: 400;
  58. font-size: 13px;
  59. margin-bottom: .14em;
  60. }
  61. .wxParse-h6 {
  62. font-weight: 400;
  63. font-size: 12px;
  64. margin-bottom: .04em;
  65. }
  66. .wxParse-h1, .wxParse-h2, .wxParse-h3, .wxParse-h4, .wxParse-h5, .wxParse-h6, .wxParse-b, .wxParse-strong { font-weight: bolder }
  67. .wxParse-i,.wxParse-cite,.wxParse-em,.wxParse-var,.wxParse-address{font-style:italic}
  68. .wxParse-pre,.wxParse-tt,.wxParse-code,.wxParse-kbd,.wxParse-samp{font-family:monospace}
  69. .wxParse-pre{white-space:pre}
  70. .wxParse-big{font-size:1.17em}
  71. .wxParse-small,.wxParse-sub,.wxParse-sup{font-size:.83em}
  72. .wxParse-sub{vertical-align:sub}
  73. .wxParse-sup{vertical-align:super}
  74. .wxParse-s,.wxParse-strike,.wxParse-del{text-decoration:line-through}
  75. /*wxparse-自定义个性化的css样式*/
  76. /*增加video的css样式*/
  77. .wxParse-strong,.wxParse-s{display: inline}
  78. .wxParse-a{
  79. color: deepskyblue;
  80. word-break:break-all;
  81. overflow:auto;
  82. }
  83. .wxParse-video{
  84. text-align: center;
  85. margin: 10px 0;
  86. }
  87. .wxParse-video-video{
  88. width:100%;
  89. }
  90. .wxParse-img{
  91. /*background-color: #efefef;*/
  92. overflow: hidden;
  93. }
  94. .wxParse-blockquote {
  95. margin: 0;
  96. padding:10px 0 10px 5px;
  97. font-family:Courier, Calibri,"宋体";
  98. background:#f5f5f5;
  99. border-left: 3px solid #dbdbdb;
  100. }
  101. .wxParse-code,.wxParse-wxxxcode-style{
  102. display: inline;
  103. background:#f5f5f5;
  104. }
  105. .wxParse-ul{
  106. margin: 20rpx 10rpx;
  107. }
  108. .wxParse-li,.wxParse-li-inner{
  109. display: flex;
  110. align-items: baseline;
  111. margin: 10rpx 0;
  112. }
  113. .wxParse-li-text{
  114. align-items: center;
  115. line-height: 20px;
  116. }
  117. .wxParse-li-circle{
  118. display: inline-flex;
  119. width: 5px;
  120. height: 5px;
  121. background-color: #333;
  122. margin-right: 5px;
  123. }
  124. .wxParse-li-square{
  125. display: inline-flex;
  126. width: 10rpx;
  127. height: 10rpx;
  128. background-color: #333;
  129. margin-right: 5px;
  130. }
  131. .wxParse-li-ring{
  132. display: inline-flex;
  133. width: 10rpx;
  134. height: 10rpx;
  135. border: 2rpx solid #333;
  136. border-radius: 50%;
  137. background-color: #fff;
  138. margin-right: 5px;
  139. }
  140. /*.wxParse-table{
  141. width: 100%;
  142. height: 400px;
  143. }
  144. .wxParse-thead,.wxParse-tfoot,.wxParse-tr{
  145. display: flex;
  146. flex-direction: row;
  147. }
  148. .wxParse-th,.wxParse-td{
  149. display: flex;
  150. width: 580px;
  151. overflow: auto;
  152. }*/
  153. .wxParse-u {
  154. text-decoration: underline;
  155. }
  156. .wxParse-hide{
  157. display: none;
  158. }
  159. .WxEmojiView{
  160. align-items: center;
  161. }
  162. .wxEmoji{
  163. width: 16px;
  164. height:16px;
  165. }
  166. .wxParse-tr{
  167. display: flex;
  168. border-right:1px solid #e0e0e0;
  169. border-bottom:1px solid #e0e0e0;
  170. border-top:1px solid #e0e0e0;
  171. }
  172. .wxParse-th,
  173. .wxParse-td{
  174. flex:1;
  175. padding:5px;
  176. font-size:28rpx;
  177. border-left:1px solid #e0e0e0;
  178. word-break: break-all;
  179. }
  180. .wxParse-td:last{
  181. border-top:1px solid #e0e0e0;
  182. }
  183. .wxParse-th{
  184. background:#f0f0f0;
  185. border-top:1px solid #e0e0e0;
  186. }
  187. .wxParse-del{
  188. display: inline;
  189. }
  190. .wxParse-figure {
  191. overflow: hidden;
  192. }