Commit 2b022a09 authored by liujiangnan's avatar liujiangnan

feat: 背景图片

parent 545dfd90
.body-bg {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-image: url('../../assets/player-bg.png') !important;
background-size: 100%;
}
.game-container {
width: 100%;
height: 100%;
position: absolute;
left: calc((100% - 100vh * 1.36)/ 2);
top: 5vh;
right: calc((100% - 100vh * 1.36)/ 2);
bottom: 5vh;
text-align: center;
border-radius: 11px;
border: 20px solid #23b1c2;
background-color: #fff;
overflow: hidden;
color: #303133;
transition: .3s;
background-image: url("../../assets/diamond/bg.jpg");
//background: #00C0FF;
//background: #00C0FF;
background-repeat: no-repeat;
background-size: cover;
}
#canvas {
......
<div class="body-bg"></div>
<div class="game-container" #wrap>
<canvas id="canvas" #canvas></canvas>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment