移动端适配

This commit is contained in:
李志鹏
2026-05-28 11:05:51 +08:00
parent d404f5ceac
commit 6415523eef
12 changed files with 125 additions and 21 deletions

View File

@@ -27,12 +27,13 @@
<style scoped lang="less">
.contact-us {
--bg-height: 514px;
> * {
position: relative;
z-index: 1;
}
> .bg {
height: 514px;
height: var(--bg-height);
width: 100%;
object-fit: cover;
position: fixed;
@@ -40,7 +41,7 @@
z-index: 0;
}
> .header {
height: 514px;
height: var(--bg-height);
display: flex;
align-items: center;
justify-content: center;
@@ -84,5 +85,22 @@
max-width: 860px;
}
}
@media (max-width: 800px) {
--bg-height: 239px;
> .header {
> h1 {
font-size: 40px;
margin-bottom: 20px;
}
}
> .contact {
> .iconfont {
font-size: 36px;
}
}
> .contact-input {
padding: 60px 20px;
}
}
}
</style>