vue中v-html中標籤添加CSS樣式

在Vue組件中,咱們能夠使用<style scoped>標籤來添加針對該組件的CSS樣式。html <template> <div class="foo"> <div v-html="myHtml"></div> </div> </template> <style scoped> .foo { height: 300px; } </style> 1 2 3
相關文章
相關標籤/搜索