星火官网,前端页面(前台)
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

header.css 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .header_box {
  2. position: relative;
  3. margin: 0 auto;
  4. width: 13rem;
  5. height: 0.8rem;
  6. font-size: 0.14rem;
  7. }
  8. .header_box .header_left {
  9. float: left;
  10. cursor: pointer;
  11. }
  12. .header_box .header_left > img {
  13. display: inline-block;
  14. margin-top: 0.24rem;
  15. margin-right: 0.08rem;
  16. height: 0.32rem;
  17. }
  18. .header_box .header_left > img.header_logo {
  19. width: 0.39rem;
  20. }
  21. .header_box .header_left > img.header_title {
  22. width: 1.35rem;
  23. }
  24. .header_box .header_left .left_white {
  25. display: inline-block;
  26. }
  27. .header_box .header_left .left_gray {
  28. display: none;
  29. }
  30. .header_box .header_right {
  31. float: right;
  32. }
  33. .header_box .header_right > .header_nav_item {
  34. position: relative;
  35. float: left;
  36. margin-left: 0.55rem;
  37. height: 0.8rem;
  38. line-height: 0.8rem;
  39. cursor: pointer;
  40. }
  41. .header_box .header_right > .header_nav_lang {
  42. position: relative;
  43. float: left;
  44. margin-left: 0.55rem;
  45. height: 0.8rem;
  46. line-height: 0.8rem;
  47. cursor: pointer;
  48. }
  49. .header_box .header_right > .header_nav_item > div::after {
  50. content: "";
  51. width: 0;
  52. position: absolute;
  53. background: #2d8cf0;
  54. height: 0.04rem;
  55. bottom: 0;
  56. left: 50%;
  57. transform: translateX(-50%);
  58. -webkit-transform: translateX(-50%);
  59. transition: all 0.3s ease-out;
  60. -webkit-transition: all 0.3s ease-out;
  61. }
  62. .header_box .header_right > .header_nav_item:hover > div::after,
  63. .header_box .header_right > .header_nav_item.selected > div::after {
  64. width: 100%;
  65. }
  66. .header_box .header_right > .header_nav_lang .nav_language_en {
  67. background-color: #2d8cf0;
  68. position: absolute;
  69. top: 0.6rem;
  70. left: 50%;
  71. transform: translateX(-50%) translateY(50%);
  72. -webkit-transform: translateX(-50%) translateY(50%);
  73. padding: 0.06rem 0;
  74. -webkit-transition: all 0.2s ease-in-out;
  75. transition: all 0.2s ease-in-out;
  76. visibility: hidden;
  77. opacity: 0;
  78. z-index: 100;
  79. text-align: center;
  80. font-size: 0.14rem;
  81. line-height: 0.4rem;
  82. color: #fff;
  83. border-radius: 0.08rem;
  84. }
  85. .header_box .header_right > .header_nav_lang:hover .nav_language_en {
  86. display: block;
  87. visibility: visible;
  88. transform: translateX(-50%) translateY(0%);
  89. -webkit-transform: translateX(-50%) translateY(0%);
  90. opacity: 1;
  91. }
  92. .header_box
  93. .header_right
  94. > .header_nav_lang:hover
  95. .nav_language_en::after {
  96. border-left: 0.07rem solid transparent;
  97. border-right: 0.07rem solid transparent;
  98. border-top: 0.09660254rem solid #2d8cf0;
  99. width: 0;
  100. height: 0;
  101. content: "";
  102. position: absolute;
  103. top: -0.08rem;
  104. left: 50%;
  105. transform: translateX(-50%) rotate(180deg);
  106. -webkit-transform: translateX(-50%) rotate(180deg);
  107. }
  108. .header_box .header_right > .header_nav_lang:hover .nav_language_en a {
  109. color: #fff;
  110. display: block;
  111. padding: 0;
  112. margin: 0 0.12rem;
  113. transition: all 0.3s ease-out;
  114. -webkit-transition: all 0.3s ease-out;
  115. text-decoration: none;
  116. }