Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_diamond
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
ww_diamond
Commits
2b022a09
Commit
2b022a09
authored
Aug 13, 2020
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 背景图片
parent
545dfd90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
play.component.css
src/app/play/play.component.css
+25
-3
play.component.html
src/app/play/play.component.html
+1
-0
player-bg.png
src/assets/player-bg.png
+0
-0
No files found.
src/app/play/play.component.css
View file @
2b022a09
.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
{
...
...
src/app/play/play.component.html
View file @
2b022a09
<div
class=
"body-bg"
></div>
<div
class=
"game-container"
#
wrap
>
<canvas
id=
"canvas"
#
canvas
></canvas>
</div>
src/assets/player-bg.png
0 → 100644
View file @
2b022a09
47.2 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment