作者 刘晓艳

富文本

... ... @@ -6,10 +6,10 @@
<view class='content_item'>
<view class='content_title'>{{listdata.title}}</view>
<!-- <view>{{listdata.content}}</view> -->
<view class='content'>
<view class='content_detail'>
<import src="../../../wxParse/wxParse.wxml" />
<template is='wxParse' data='{{wxParseData:content.nodes}}' />
<!-- <rich-text nodes="{{html}}" bindtap="tap"></rich-text> -->
<!-- <rich-text nodes="{{html}}" bindtap="tap"></rich-text> -->
</view>
</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -41,31 +41,30 @@ page {
text-align: center;
}
.content_item .wxParse-strong image {
/* width: 100%;
height: 100%;
display: block; */
.content_detail {
width: 100%;
font-size: 28rpx;
color: #666;
line-height: 60rpx;
}
.content_item view {
/* display: flex;
flex-direction: column;
align-items: center;
justify-content: center; */
.content_detail view {
display: inline-block;
}
.content {
width: 100%;
height: 100%;
.wxParse-p {
text-indent: 0 !important;
word-spacing: normal;
word-wrap: normal;
display: block !important;
}
.wxParse-p .wxParse-img {
.wxParse-section {
width: 100% !important;
height: 100%;
height: 100% !important;
}
. WxEmojiView .wxParse-inline ,wxParse-span wxParse-inline {
/* white-space: nowrap !important; */
word-wrap: normal!important;
/* word-spacing: normal!important; */
.wxParse-img {
width: 100% !important;
height: 100%;
}
... ...