Commit 414b2840b5808636f32d6f1c84bc543ee20263b5
1 parent
4b9eedc9
头部
Showing
4 changed files
with
12 additions
and
5 deletions
src/components/VHeader.vue
1 | 1 | <template> |
2 | - <header class="">toubu</header> | |
2 | + <header class="header-wrap"> | |
3 | + <span>车场实时概况</span> | |
4 | + </header> | |
3 | 5 | </template> |
4 | 6 | |
5 | 7 | <script> |
... | ... | @@ -10,9 +12,14 @@ export default { |
10 | 12 | </script> |
11 | 13 | |
12 | 14 | <style scoped> |
13 | - header{ | |
15 | + header { | |
14 | 16 | height: 65px; |
15 | 17 | line-height: 65px; |
16 | - background-color: #f00; | |
18 | + text-align: center; | |
19 | + font-size: 32px; | |
20 | + background-image: url("../images/header/headerbg.png"); | |
21 | + background-repeat: no-repeat; | |
22 | + background-position: center center; | |
23 | + | |
17 | 24 | } |
18 | 25 | </style> | ... | ... |
src/images/header/bg.jpg renamed to src/images/bg.jpg
157 KB
src/images/header/headerbg.png
0 → 100644
13.6 KB
src/style/reset.css
... | ... | @@ -50,7 +50,7 @@ body { |
50 | 50 | html, body{ |
51 | 51 | height: 100%;width: 100%; |
52 | 52 | font-family: "Microsoft YaHei"; |
53 | - | |
53 | + color: #fff; | |
54 | 54 | user-select: none; |
55 | 55 | -webkit-user-select: none; |
56 | 56 | -ms-user-select: none; |
... | ... | @@ -58,7 +58,7 @@ html, body{ |
58 | 58 | -moz-user-select: none; |
59 | 59 | } |
60 | 60 | body{ |
61 | - background: url("../images/header/bg.jpg") no-repeat; | |
61 | + background: url("../images/bg.jpg") no-repeat; | |
62 | 62 | background-size: 100% 100%; |
63 | 63 | overflow: hidden; |
64 | 64 | /*background-size:100% 100%;*/ | ... | ... |