CSS样式覆盖
【代码】CSS样式覆盖。
·
样式覆盖:如果使用一些组建的时候,想要修改它的样式,可以自己写新的样式去覆盖原本的样式,方法如下,见style中的三种写法:
<template>
<view class="custom-transition"></view>
</template>
<style>
/* 样式强制覆盖吧 */
.custom-transition {
width:100px !important;
height:100px !important;
background-color:red !important;
}
</style>
更多推荐
已为社区贡献13条内容
所有评论(0)