webs/hanJing/css/header.css

118 lines
2.2 KiB
CSS
Raw Normal View History

2025-04-18 06:16:06 +00:00
.header{
width: 100%;
height: 15vh;
2025-04-18 06:16:06 +00:00
background-color: #030045;
position: relative;
margin-bottom: 0;
margin-bottom: -1px;
/* background: padding-box; */
display: flex;
align-items: center;
justify-content: center;
2025-04-18 06:16:06 +00:00
}
.header .bg{
width: 20vw;
height: 35%;
/* background: palegoldenrod; */
position: absolute;
bottom: 0;
left: 24vw;
}
.header .bg img{
width: 100%;
height:auto;
}
.header .container{
width: 100%;
height: 65%;
display: flex;
2025-05-08 06:56:06 +00:00
align-items: center;
/* justify-content: space-around; */
2025-04-18 06:16:06 +00:00
/* background: palegoldenrod; */
}
.logo{
2025-05-08 06:56:06 +00:00
width: 50%;
2025-04-18 06:16:06 +00:00
height: 100%;
display: flex;
align-items: center;
2025-05-08 06:56:06 +00:00
padding-left: 10vw;
2025-04-18 06:16:06 +00:00
}
2025-05-08 06:56:06 +00:00
.logo img{
width: 4vw;
2025-04-18 06:16:06 +00:00
height: auto;
2025-05-08 06:56:06 +00:00
max-height: 4vw;
display: block;
object-fit: contain; /* 保证图片不变形 */
2025-04-18 06:16:06 +00:00
}
.header ul{
2025-05-08 06:56:06 +00:00
width: auto;
2025-04-18 06:16:06 +00:00
height: 100%;
display: flex;
align-items: center;
justify-content: center;
/* background: palevioletred; */
margin-left: 5vw;
2025-05-08 06:56:06 +00:00
/* padding-right: 10vw; */
2025-04-18 06:16:06 +00:00
}
.header ul li{
2025-05-08 06:56:06 +00:00
/* width: 100%; */
min-width: 5vw;
2025-04-18 06:16:06 +00:00
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9vw;
2025-05-08 06:56:06 +00:00
margin-left: 1vw;
/* background: palegreen; */
2025-04-18 06:16:06 +00:00
}
.header ul li a{
display: inline-block;
color: #009FD1;
transition: all 0.2s ease;
font-weight: 600;
font-size: 1vw;
position: relative;
padding-bottom: 2vh;
}
.header ul li a:hover{
font-size: 1vw;
color: #fff;
text-shadow: 0 0 10px rgba(41, 111, 216, 0.5);
}
/* .active{
background: palegoldenrod;
} */
.actives::before{
2025-04-23 03:33:57 +00:00
content:url(../imgs/svg/页面选择图标.svg);
2025-04-18 06:16:06 +00:00
width: 100%;
height: auto;
position: absolute;
bottom: 0;
left: 0;
}
2025-05-08 06:56:06 +00:00
.language{
/* width: 10%; */
/* height: 100%; */
/* background: palegoldenrod; */
/* line-height:5vh; */
padding-bottom: 2vh;
border:none;
outline: none;
cursor: pointer;
color: #009FD1;
transition: all 0.2s ease;
font-weight: 600;
font-size: 1vw;
background: transparent;
margin-left: 1vw;
}
.language:hover{
color: #fff;
text-shadow: 0 0 10px rgba(41, 111, 216, 0.5);
}