headers.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <div style="width:100%;border-bottom: #f1f1f1 solid 1px;">
  3. <div class="header_box">
  4. <div class="header_left">
  5. <img src="../assets/image/resource/logo_img.png" class="logo_img" />
  6. <div class="header_list">
  7. <ul>
  8. <li v-for="items in navlist" class="nav_name"><a :href="items.url" style="color:#555;">{{items.name}}</a></li>
  9. </ul>
  10. </div>
  11. </div>
  12. <div class="header_right">
  13. <div class="helper"><button>教学助手</button></div>
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. navlist: [
  23. { "id": 1, "name": '首页', "url": '/HomePage' },
  24. { "id": 2, "name": '资源', "url": '/resource' },
  25. { "id": 3, "name": '名师', "url": '/Teacher' },
  26. { "id": 4, "name": '活动', "url": '/activity' },
  27. ],
  28. }
  29. }
  30. }
  31. </script>
  32. <style scoped>
  33. .header_box {
  34. width: 1200px;
  35. height: 85px;
  36. background-color: #fff;
  37. margin: 0 auto;
  38. }
  39. .header_left {
  40. width: 800px;
  41. float: left;
  42. height: 75px;
  43. }
  44. .header_right {
  45. width: 200px;
  46. float: left;
  47. height: 75px;
  48. padding-left:7%;
  49. padding-top:5px;
  50. }
  51. .logo_img {
  52. float: left;
  53. width: 25%;
  54. margin-top: 1.5%;
  55. }
  56. .header_list {
  57. float: left;
  58. width:70%;
  59. padding-left:15%;
  60. }
  61. .nav_name {
  62. width: 15%;
  63. float: left;
  64. list-style: none;
  65. display: block;
  66. height: 38px;
  67. line-height: 85px;
  68. padding: 0 5px;
  69. margin: 0 11px;
  70. font-size: 18px;
  71. color: #555555;
  72. text-align:center;
  73. }
  74. .login_btn {
  75. width:30%;
  76. display:block;
  77. float:left;
  78. margin-left:40%;
  79. }
  80. .login_btn button {
  81. width: 85px;
  82. text-align: center;
  83. background: #26b5ff;
  84. color: #fff;
  85. height: 35px;
  86. line-height: 35px;
  87. margin: 22px 22px 0px 22px;
  88. border: 0;
  89. border-radius: 10px;
  90. font-size:18px;
  91. }
  92. .helper {
  93. width: 100%;
  94. display: block;
  95. float: left;
  96. padding-top:22px;
  97. }
  98. .helper button {
  99. padding: 0 17px;
  100. color: #288add;
  101. border: 1px solid #2196f3;
  102. height: 30px;
  103. line-height: 30px;
  104. background: #fff;
  105. font-size: 18px;
  106. }
  107. </style>