Footer.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div class="footer-nav">
  3. <nav class="pull-left">
  4. <ul>
  5. <li>
  6. <a href="#">商务合作</a>
  7. </li>
  8. &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
  9. <li>
  10. <a href="#">关于众测</a>
  11. </li>
  12. &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
  13. <li>
  14. <a href="#">友情链接</a>
  15. </li>
  16. &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
  17. <li>
  18. <a href="#">用户协议</a>
  19. </li>
  20. &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
  21. <li>
  22. <a href="#">隐私政策</a>
  23. </li>
  24. </ul>
  25. </nav>
  26. <div class="copyright pull-right">
  27. ©{{time}}
  28. <a target="_blank" href="http://www.beian.miit.gov.cn"> 粤ICP备09019504号</a>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. export default {
  34. name: "footer-container",
  35. data() {
  36. return {
  37. time: new Date().getFullYear()
  38. };
  39. }
  40. };
  41. </script>
  42. <style scoped>
  43. .footer-nav {
  44. background-color: #f0f0f0;
  45. padding: 15px 0;
  46. text-align: center;
  47. display: flex;
  48. font-size: 1.2rem;
  49. color: #666;
  50. }
  51. .footer-nav ul {
  52. margin-bottom: 0;
  53. padding: 0;
  54. list-style: none;
  55. }
  56. .footer-nav ul li {
  57. display: inline-block;
  58. }
  59. .footer-nav ul li a {
  60. color: inherit;
  61. padding: 5px;
  62. font-weight: 500;
  63. text-transform: uppercase;
  64. border-radius: 3px;
  65. position: relative;
  66. display: block;
  67. }
  68. .footer-nav .copyright {
  69. padding: 5px 0;
  70. color: #333;
  71. }
  72. .copyright a {
  73. color: #666;
  74. }
  75. </style>