Vue 使用笔记
1、Vue项目在标签中如何书写多个内敛style样式
- 使用数组格式 :style="[{‘width’: ‘50px’, ‘height’: ‘20px’}, item%2 === 0 ? styleObj : ‘’]"
2、深度选择器[ :deep(.class){} ]用于定义引用的第三方组件内专属样式
<style scoped> :deep(.el-scrollbar__view) { position: relative;} </style>
1、Vue项目在标签中如何书写多个内敛style样式
2、深度选择器[ :deep(.class){} ]用于定义引用的第三方组件内专属样式
<style scoped> :deep(.el-scrollbar__view) { position: relative;} </style>