<template>
<view>
<view class="text-color">
test view color
</view>
<rich-text :nodes="nodeString"></rich-text>
</view>
</template>
<script>
export default {
data() {
return {
nodeString: '<div class="text-color">222222</div>'
};
},
}
</script>
<style>
.text-color {
color: #008800;
}
</style>
那这个要使class样式生效,要怎么写?
s***@163.com (作者)
好嘞,多谢啦
2019-02-22 11:45