This commit is contained in:
2025-12-29 14:35:17 +08:00
parent b1b59a96f2
commit 005457e13e
6 changed files with 25 additions and 18 deletions

View File

@@ -3,10 +3,7 @@
}
.fs-box {
width: 100%;
aspect-ratio: 16/9; /* 2560/1440=16/9核心比例约束 */
position: relative;
will-change: contents; /* 告诉浏览器该元素即将变化,提前优化 */
contain: layout paint; /* 限制重排重绘范围 */
aspect-ratio: 16/9;
}
.fs-img,
.fs-video {
@@ -17,7 +14,6 @@
width: 100%;
}
.fs-box-img {
display: flex;
display: flex;
flex-wrap: wrap;
}
@@ -27,15 +23,19 @@
display: flex;
justify-content: center;
gap: 0.11rem;
}
.fs-h-img img {
width: 3.35rem;
aspect-ratio: 335/95;
}
.fs-b-img {
width: 100%;
display: flex;
justify-content: center;
margin-top: 0.1rem;
aspect-ratio: 681/122;
}
.fs-b-img img {
width: 6.81rem;