diff --git a/hanJing/css/header.css b/hanJing/css/header.css index 6b32bc8..4a7aa21 100644 --- a/hanJing/css/header.css +++ b/hanJing/css/header.css @@ -115,3 +115,90 @@ color: #fff; text-shadow: 0 0 10px rgba(41, 111, 216, 0.5); } + + +/* -------------------- */ + +/* 语言切换下拉框样式 */ +.lang-dropdown { + position: relative; + display: inline-block; + cursor: pointer; + margin-bottom: 2vh; + margin-left: 8px; +} + +.lang-btn { + display: flex; + align-items: center; + background-color: transparent; + color: #ffffff; + border: none; + cursor: pointer; + padding: 8px 12px; + border-radius: 4px; + font-size: 0.8vw; + transition: all 0.3s ease; + font-weight: 600; +} + +.lang-btn:hover { + background-color: rgba(255, 255, 255, 0.1); +} + +.lang-btn img { + width: 20px; + height: 14px; + margin-right: 8px; + border-radius: 2px; + object-fit: cover; +} + +.lang-btn .arrow { + margin-left: 8px; + transition: transform 0.3s ease; +} + +.lang-dropdown-content { + display: none; + position: absolute; + right: 0; + top: 100%; /* 确保设置了这个值 */ + min-width: 120px; + background-color: #ffffff; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); + border-radius: 4px; + z-index: 1000; + overflow: hidden; +} + +.lang-dropdown-content.show { + display: block; + animation: fadeIn 0.2s ease; +} + +.lang-item { + display: flex; + align-items: center; + padding: 10px 12px; + color: #333; + text-decoration: none; + transition: all 0.2s ease; +} + +.lang-item:hover { + background-color: #f5f5f5; +} + +.lang-item img { + width: 20px; + height: 14px; + margin-right: 8px; + border-radius: 2px; + object-fit: cover; +} + +@keyframes fadeIn { + from { opacity: 0; transform: translateY(-10px); } + to { opacity: 1; transform: translateY(0); } +} \ No newline at end of file diff --git a/hanJing/html/aboutUs.html b/hanJing/html/aboutUs.html index 2d9e93a..b72d77e 100644 --- a/hanJing/html/aboutUs.html +++ b/hanJing/html/aboutUs.html @@ -34,7 +34,29 @@
  • 展望未来
  • 关于我们
  • - + + +
    + +
    +
    + 中文 + 简体中文 +
    +
    + English + English +
    +
    +
    + + + + +
    + +
    +
    + 中文 + 简体中文 +
    +
    + English + English +
    +
    +
    + + + + +
    + +
    +
    + 中文 + 简体中文 +
    +
    + English + English +
    +
    +
    + + + + + + +
    + +
    +
    + 中文 + 简体中文 +
    +
    + English + English +
    +
    +
    + + + +
    + +
    +
    + 中文 + 简体中文 +
    +
    + English + English +
    +
    +
    + + + +
    + +
    +
    + 中文 + 简体中文 +
    +
    + English + English +
    +
    +
    + + +