转: https://blog.csdn.net/yanby921005/article/details/79963722
https://www.cnblogs.com/minigrasshopper/p/8011900.html
<template>
<div class="foo">
<div v-html="myHtml"></div>
</div>
</template>
<style scoped>
.foo { height: 300px; }
</style>
如果在组件中使用了v-html,要为myHtml中的标签添加CSS样式,我们需要在写样式的时候添加>>>:
.foo >>> img { max-width: 100%; }
解决方案2:去掉style标签中的scoped属性
<style>
.descBox p{
color: blue;
}
</style>