方法:
css选择器 >>> 标签
<template>
<div v-html="data" class="test">
</div>
</template>
<script>
export default {
data(){
return{
data:"<h1>Hello World</h1>"
}
}
}
</script>
<style scoped>
.test >>> h1{
color: red;
font-size: 18px
}
</style>