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.
289 lines
4.5 KiB
289 lines
4.5 KiB
/** |
|
* author: Di (微信小程序开发工程师) |
|
* organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) |
|
* 垂直微信小程序开发交流社区 |
|
* |
|
* github地址: https://github.com/icindy/wxParse |
|
* |
|
* for: 微信小程序富文本解析 |
|
* detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184 |
|
*/ |
|
|
|
.wxParse-p { |
|
font-size: 36rpx; |
|
} |
|
|
|
.wxParse-inline { |
|
line-height: 1.6; |
|
} |
|
|
|
.wxParse { |
|
margin: 0 5px; |
|
font-family: Helvetica, sans-serif; |
|
font-size: 28rpx; |
|
color: #666; |
|
line-height: 2; |
|
} |
|
|
|
view { |
|
word-break: break-all; |
|
} |
|
|
|
.wxParse-br { |
|
padding: 20rpx 0; |
|
} |
|
|
|
.wxParse-inline { |
|
display: inline; |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
/*//标题 */ |
|
|
|
.wxParse-div { |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
.wxParse-h1 { |
|
font-size: 36px; |
|
margin: 0.67em 20rpx; |
|
} |
|
|
|
.wxParse-h2 { |
|
font-size: 30px; |
|
margin: 0.75em 20rpx; |
|
} |
|
|
|
.wxParse-h3 { |
|
font-size: 24px; |
|
margin: 0.83em 20rpx; |
|
} |
|
|
|
.wxParse-h4 { |
|
font-size: 18px; |
|
margin: 1.12em 20rpx; |
|
} |
|
|
|
.wxParse-h5 { |
|
font-size: 14px; |
|
margin: 1.5em 20rpx; |
|
} |
|
|
|
.wxParse-h6 { |
|
font-size: 12px; |
|
margin: 1.67em 20rpx; |
|
} |
|
|
|
.wxParse-h1 { |
|
font-size: 36px; |
|
font-weight: 400; |
|
margin-bottom: 0.9em; |
|
} |
|
|
|
.wxParse-h2 { |
|
font-size: 30px; |
|
font-weight: 400; |
|
margin-bottom: 0.34em; |
|
} |
|
|
|
.wxParse-h3 { |
|
font-weight: 400; |
|
font-size: 24px; |
|
margin-bottom: 0.34em; |
|
} |
|
|
|
.wxParse-h4 { |
|
font-weight: 400; |
|
font-size: 18px; |
|
margin-bottom: 0.24em; |
|
} |
|
|
|
.wxParse-h5 { |
|
font-weight: 400; |
|
font-size: 14px; |
|
margin-bottom: 0.14em; |
|
} |
|
|
|
.wxParse-h6 { |
|
font-weight: 400; |
|
font-size: 12px; |
|
margin-bottom: 0.04em; |
|
} |
|
|
|
.wxParse-h1, .wxParse-h2, .wxParse-h3, .wxParse-h4, .wxParse-h5, .wxParse-h6, |
|
.wxParse-b, .wxParse-strong { |
|
font-weight: bolder; |
|
} |
|
|
|
.wxParse-i, .wxParse-cite, .wxParse-em, .wxParse-var, .wxParse-address { |
|
font-style: italic; |
|
} |
|
|
|
.wxParse-pre, .wxParse-tt, .wxParse-code, .wxParse-kbd, .wxParse-samp { |
|
font-family: monospace; |
|
} |
|
|
|
/* .wxParse-pre{white-space:pre} */ |
|
|
|
.wxParse-big { |
|
font-size: 1.17em; |
|
} |
|
|
|
.wxParse-small, .wxParse-sub, .wxParse-sup { |
|
font-size: 0.83em; |
|
} |
|
|
|
.wxParse-sub { |
|
vertical-align: sub; |
|
} |
|
|
|
.wxParse-sup { |
|
vertical-align: super; |
|
} |
|
|
|
.wxParse-s, .wxParse-strike, .wxParse-del { |
|
text-decoration: line-through; |
|
} |
|
|
|
/*wxparse-自定义个性化的css样式*/ |
|
|
|
/*增加video的css样式*/ |
|
|
|
.wxParse-strong, .wxParse-s { |
|
display: inline; |
|
} |
|
|
|
.wxParse-a { |
|
color: deepskyblue; |
|
word-break: break-all; |
|
overflow: auto; |
|
} |
|
|
|
.wxParse-video { |
|
text-align: center; |
|
margin: 10px 0; |
|
} |
|
|
|
.wxParse-video-video { |
|
width: 100%; |
|
} |
|
|
|
.wxParse-img { |
|
overflow: hidden; |
|
} |
|
|
|
.wxParse-blockquote { |
|
margin: 0; |
|
padding: 10px 0 10px 5px; |
|
font-family: Courier, Calibri, "宋体"; |
|
background: #f5f5f5; |
|
border-left: 3px solid #dbdbdb; |
|
} |
|
|
|
.wxParse-code, .wxParse-wxxxcode-style { |
|
display: inline; |
|
background: #f5f5f5; |
|
} |
|
|
|
.wxParse-ul { |
|
margin: 20rpx 10rpx; |
|
} |
|
|
|
.wxParse-li, .wxParse-li-inner { |
|
display: flex; |
|
align-items: baseline; |
|
margin: 10rpx 0; |
|
} |
|
|
|
.wxParse-li-text { |
|
align-items: center; |
|
line-height: 20px; |
|
} |
|
|
|
.wxParse-li-circle { |
|
display: inline-flex; |
|
width: 5px; |
|
height: 5px; |
|
background-color: #333; |
|
margin-right: 5px; |
|
} |
|
|
|
.wxParse-li-square { |
|
display: inline-flex; |
|
width: 10rpx; |
|
height: 10rpx; |
|
background-color: #333; |
|
margin-right: 5px; |
|
} |
|
|
|
.wxParse-li-ring { |
|
display: inline-flex; |
|
width: 10rpx; |
|
height: 10rpx; |
|
border: 2rpx solid #333; |
|
border-radius: 50%; |
|
background-color: #fff; |
|
margin-right: 5px; |
|
} |
|
|
|
.wxParse-u { |
|
text-decoration: underline; |
|
} |
|
|
|
.wxParse-hide { |
|
display: none; |
|
} |
|
|
|
.WxEmojiView { |
|
align-items: center; |
|
} |
|
|
|
.wxEmoji { |
|
width: 16px; |
|
height: 16px; |
|
} |
|
.wxParse-tbody { |
|
border-bottom: 1px solid #e0e0e0; |
|
} |
|
|
|
.wxParse-tr { |
|
display: flex; |
|
border-right: 1px solid #e0e0e0; |
|
border-bottom: 1px solid #e0e0e0; |
|
border-top: 1px solid #e0e0e0; |
|
} |
|
|
|
.wxParse-th, .wxParse-td { |
|
flex: 1; |
|
/* padding:5px; */ |
|
font-size: 28rpx; |
|
border-left: 1px solid #e0e0e0; |
|
/* word-break: break-all; */ |
|
} |
|
|
|
.wxParse-th image, .wxParse-td image { |
|
display: block; |
|
padding: 5px; |
|
-webkit-box-sizing: border-box; |
|
-moz-box-sizing: border-box; |
|
box-sizing: border-box; |
|
} |
|
|
|
.wxParse-td:last { |
|
border-top: 1px solid #e0e0e0; |
|
} |
|
|
|
.wxParse-th { |
|
background: #f0f0f0; |
|
border-top: 1px solid #e0e0e0; |
|
} |
|
|
|
.wxParse-del { |
|
display: inline; |
|
} |
|
|
|
.wxParse-figure { |
|
overflow: hidden; |
|
}
|
|
|