Commit 414b2840b5808636f32d6f1c84bc543ee20263b5

Authored by liuqimichale
1 parent 4b9eedc9

头部

src/components/VHeader.vue
1 <template> 1 <template>
2 - <header class="">toubu</header> 2 + <header class="header-wrap">
  3 + <span>车场实时概况</span>
  4 + </header>
3 </template> 5 </template>
4 6
5 <script> 7 <script>
@@ -10,9 +12,14 @@ export default { @@ -10,9 +12,14 @@ export default {
10 </script> 12 </script>
11 13
12 <style scoped> 14 <style scoped>
13 - header{ 15 + header {
14 height: 65px; 16 height: 65px;
15 line-height: 65px; 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 </style> 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,7 +50,7 @@ body {
50 html, body{ 50 html, body{
51 height: 100%;width: 100%; 51 height: 100%;width: 100%;
52 font-family: "Microsoft YaHei"; 52 font-family: "Microsoft YaHei";
53 - 53 + color: #fff;
54 user-select: none; 54 user-select: none;
55 -webkit-user-select: none; 55 -webkit-user-select: none;
56 -ms-user-select: none; 56 -ms-user-select: none;
@@ -58,7 +58,7 @@ html, body{ @@ -58,7 +58,7 @@ html, body{
58 -moz-user-select: none; 58 -moz-user-select: none;
59 } 59 }
60 body{ 60 body{
61 - background: url("../images/header/bg.jpg") no-repeat; 61 + background: url("../images/bg.jpg") no-repeat;
62 background-size: 100% 100%; 62 background-size: 100% 100%;
63 overflow: hidden; 63 overflow: hidden;
64 /*background-size:100% 100%;*/ 64 /*background-size:100% 100%;*/