uniapp里background背景图自适应高度
【代码】小程序背景图自适应高度。
·
#container {
// width: 100vw;
// height: 100vh;
// background: url(../../static/tjj_bg.png) no-repeat;
// background-repeat: no-repeat;
// background-size: 100% 100%;
background-size: cover;
box-sizing: border-box;
}
更多推荐
已为社区贡献7条内容
所有评论(0)