解决vue组件中给body设置样式不起作用的简单办法
给template中的第一个div设置如下样式 .body-bg {position: absolute;width: 100%;height: 100%;top: 0;left: 0;overflow-y: auto;background-color: #000;}
·
给template中的第一个div设置如下样式
.body-bg {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
overflow-y: auto;
background-color: #000;
}
更多推荐
已为社区贡献6条内容
所有评论(0)