Files
orico-official-website/public/static/index/pc/css/topic_laptop/yq.css
liqian ba79dc6178
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 2s
笔记本
2025-12-12 17:45:49 +08:00

60 lines
1.3 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 容器高度完全跟随图片真实高度 */
.fullscreen-img-container {
position: relative;
width: 100%;
min-width: 1280px;
margin-top: 2.49rem;
aspect-ratio: 16/9; /* 2560/1440=16/9核心比例约束 */
/* background: url('../img/yq1.png'); */
background-size: cover;
/* 去掉所有强制高度,高度=图片真实高度 */
}
/* 图片按真实比例显示,不拉伸/裁剪可选cover看需求 */
.fullscreen-img {
width: 100%;
height: auto;
display: block;
/* 如需填满容器保留cover如需显示完整图片改为contain */
object-fit: cover;
}
/* 文字:修复宽幅+居中生效(仅改定位行) */
.overlay-text {
/* 宽幅限制生效 */
width: 100%;
min-width: 1280px;
padding-top: 1.47rem;
}
.overlay-text h2 {
width: 100%;
font-size: 0.63rem;
color: #cbcfd8;
text-align: center;
line-height: 1;
}
.overlay-text p {
font-size: clamp(16px, 1vw, 0.22rem);
color: #cbcfd8;
text-align: center;
padding-top: 0.43rem;
}
.float-cards {
display: flex;
width: 100%;
justify-content: center;
position: absolute;
bottom: -50px;
gap: 0.2rem;
}
.bottom-desc {
text-align: center;
color: #cbcfd8;
font-size: clamp(16px, 1vw, 0.22rem);
padding-top: 1.9rem;
width: 100%;
min-width: 1280px;
}