【uniapp】如何设置单个页面背景颜色
代码】uniapp中如何设置单个页面背景颜色。
·
//单独写一个style,不会报错,亲测正常运行。
<style>
page {
background-color: #ECECEC;
}
</style>
// 自己的样式表
<style scoped>
.goods_all {
position: relative;
display: flex;
flex-wrap: wrap;
.....
}
</style>
但是style不能带scoped属性,不然不生效,所以自己在上边再写一个style即可
page {
background-color: #xxxxxx
}
更多推荐



所有评论(0)