uniapp小程序如何设置单个页面背景颜色

作者:米云网络 时间:2023-09-10 浏览:628
628
//单独写一个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
    }


文章链接:https://www.yunscrm.cn/help/149.html
文章标题:uniapp小程序如何设置单个页面背景颜色
声明: 所发布的内容,部分为原创文章,转载请注明来源,网络转载文章如有侵权请联系我们!

相关阅读