App.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <div id="app">
  3. <div class="bg">
  4. <img src="@/assets/img/m1.png" >
  5. </div>
  6. <div>
  7. </div>
  8. <top-logo></top-logo>
  9. <nav-bar></nav-bar>
  10. <div class="main-wrapper">
  11. <router-view />
  12. </div>
  13. <page-bottom></page-bottom>
  14. </div>
  15. </template>
  16. <script>
  17. import TopLogo from './components/topLogo/TopLogo.vue'
  18. import NavBar from './components/navBar/NavBar.vue'
  19. import PageBottom from './components/pageBottom/PageBottom.vue'
  20. export default {
  21. components: {
  22. NavBar,
  23. TopLogo,
  24. PageBottom
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. #app {
  30. // max-width: 1920px;
  31. min-width: 1200px;
  32. margin: 0 auto;
  33. }
  34. .main-wrapper {
  35. width: 1200px;
  36. margin: 0 auto;
  37. }
  38. .bg {
  39. position: absolute;
  40. left: 0;
  41. right: 0;
  42. margin: 0 auto;
  43. // margin: 0 auto -300px;
  44. height: 300px;
  45. // max-width: 1920px;
  46. // min-width: 1200px;
  47. width: 100%;
  48. // background-image: url(assets/img/m1.png);
  49. // background-size: auto 100%;
  50. z-index: -1;
  51. img {
  52. width: 100%;
  53. height: 300px;
  54. }
  55. }
  56. </style>