因为控制富文本控件中的样式,所以使用>>>,例如
</template>
<rich-text :nodes="xxx" class="ric"></rich-text>
</template>
<style>
.ric >>> img{
max-width: 100%;
}
</style>
APP编译时,会报错
10:52:19.038 ./pages/tuanproduct/tuanproduct.wxss(2:7): error at token >
10:52:19.041 error file count: 0
H5正常