Author: Not specified Language: css
Description: Not specified Timestamp: 2017-07-04 01:35:38 +0000
View raw paste Reply
  1. <template>
  2.   <div id="app">
  3.     <div id="background-main">
  4.       <img src="./assets/background.jpg">
  5.       <router-view></router-view>
  6.     </div>
  7.   </div>
  8. </template>
  9.  
  10. #background-main {
  11.     position: fixed;
  12.     z-index: -99;
  13.  
  14.     background: no-repeat url(./assets/background.jpg);
  15.     background-position: center center;
  16.     background-attachment: fixed;
  17. }
  18.  
  19. #background-main img{
  20.     opacity: 0;  /* make it transparent */
  21.     background-position: center center;
  22.     background-attachment: fixed;
  23. }
  24.  
  25. #app {
  26.   margin: 0px;
  27.   padding: 0px;
  28.   font-family: 'Avenir', Helvetica, Arial, sans-serif;
  29.   -webkit-font-smoothing: antialiased;
  30.   -moz-osx-font-smoothing: grayscale;
  31.   text-align: center;
  32. }
View raw paste Reply