header.css 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .header {
  2. position: fixed;
  3. width: 100%;
  4. height: 80px;
  5. z-index: 300;
  6. top: 0;
  7. box-shadow: -1px 0px 10px rgb(0, 0, 0, 0.3);
  8. }
  9. .header-nav {
  10. width: 1200px;
  11. height: 100%;
  12. display: flex;
  13. align-items: center;
  14. margin: 0 auto;
  15. }
  16. .header-img-box {
  17. width: 230px;
  18. height: 60px;
  19. display: flex;
  20. align-items: center;
  21. justify-content: center;
  22. }
  23. .header-img-box img {
  24. height: auto;
  25. }
  26. .header-list {
  27. flex: 1;
  28. display: flex;
  29. align-items: center;
  30. font-size: 16px;
  31. }
  32. .header-list li {
  33. width: 120px;
  34. text-align: center;
  35. }
  36. .header-list li span {
  37. padding: 5px 0;
  38. position: relative;
  39. border-bottom: 2px solid transparent;
  40. }
  41. .header-list li.active span {
  42. border-bottom-color: #2196f3;
  43. }
  44. .header-list li.active,
  45. .header-list li:hover {
  46. color: #2196f3;
  47. font-weight: 600;
  48. }
  49. .header-btn-box {
  50. width: 100px;
  51. display: flex;
  52. align-items: center;
  53. justify-content: center;
  54. }
  55. .header-btn-box .btn {
  56. width: 100%;
  57. height: 34px;
  58. display: flex;
  59. align-items: center;
  60. justify-content: center;
  61. background-color: #008dfe;
  62. border-color: #008dfe;
  63. color: #ffffff;
  64. font-size: 14px;
  65. border-radius: 5px;
  66. }
  67. .header-btn-box .btn:hover {
  68. background: #66b1ff;
  69. border-color: #66b1ff;
  70. }