title.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="title">
  3. <div class="title-main">
  4. <div class="title-contant">
  5. <i class="iconfont icon-logo"></i>
  6. <span>YUANCHAIN</span>
  7. </div>
  8. <ul class="title-ul">
  9. <li v-for="item in lillist">{{item}}</li>
  10. </ul>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. export default{
  16. data(){
  17. return{
  18. lillist:['首页','白皮书','技术特色','应用场景','顾问介绍','云矿机']
  19. }
  20. },
  21. mounted(){
  22. },
  23. methods:{
  24. }
  25. }
  26. </script>
  27. <style>
  28. .title{
  29. .title-main{
  30. float: left;
  31. overflow: hidden;
  32. height: 59px;
  33. width: 100%;
  34. .title-contant{
  35. margin-top: 13px ;
  36. width: 8.3%;
  37. height: 32px;
  38. line-height: 32px;
  39. color: #000;
  40. float: left;
  41. margin-left: 34px;
  42. font-weight: bold;
  43. .icon-logo{
  44. border: 2px solid #000;
  45. border-radius: 50%;
  46. }
  47. }
  48. .title-ul{
  49. float: left;
  50. width: 26.47%;
  51. line-height: 59px;
  52. font-size: 14px;
  53. margin-left: 141.75px;
  54. li{
  55. width: 20%;
  56. float: left;
  57. }
  58. }
  59. .title-ul:hover{
  60. li{
  61. }
  62. }
  63. }
  64. }
  65. </style>