App.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <div id="app">
  3. <div class="topNav">
  4. <div id="nav" style="padding: 0px;background: #FFFFFF; display: flex;flex-direction: row;justify-content: flex-end;
  5. position: relative;
  6. right: 121px;">
  7. <img src="components/img/logo.png" alt="">
  8. <router-link to="/">首页</router-link>
  9. <router-link to="/teach">人才培养</router-link>
  10. <router-link to="/news">新闻</router-link>
  11. <router-link to="/about">关于我们</router-link>
  12. <router-link to="/serve">服务</router-link>
  13. </div>
  14. <router-view/>
  15. </div>
  16. </div>
  17. </template>
  18. <style lang="stylus">
  19. #app
  20. font-family 'Avenir', Helvetica, Arial, sans-serif
  21. -webkit-font-smoothing antialiased
  22. -moz-osx-font-smoothing grayscale
  23. // text-align center
  24. color #2c3e50
  25. #nav
  26. width 1440px
  27. height 80px
  28. padding 30px
  29. line-height 80px
  30. a
  31. font-weight bold
  32. color #4A4A4A
  33. margin-right 60px
  34. width 100px
  35. height 80px
  36. text-align center
  37. &.router-link-exact-active
  38. color #FFFFFF
  39. margin-right 60px
  40. margin-right 60px
  41. width 100px
  42. height 80px
  43. text-align center
  44. background-image: linear-gradient(-90deg, #30D5FF 0%, #749CF7 100%);
  45. .topNav{
  46. position:absolute;
  47. left:0px;
  48. top:0px;
  49. height:100px;
  50. width: 1200px;
  51. }
  52. #navtext{
  53. #u22 {
  54. border-width:0px;
  55. position:absolute;
  56. left:400px;
  57. top:30px;
  58. width:41px;
  59. height:24px;
  60. font-family:'Arial Normal', 'Arial';
  61. font-weight:400;
  62. font-style:normal;
  63. font-size:20px;
  64. color:#666666;
  65. }
  66. }
  67. </style>