在style标签里里添加 lang="scss" scoped
写法代码如下:
<style lang="scss" scoped>
.article{
vertical-align: top;
padding-left: 5px;
padding-top: 5px;
.title{
font-size: 20px;
background-color: aqua;
}
.abstract{
font-size: 10px;
background-color: aquamarine;
}
}
</style>