轮播图图片自适应

This commit is contained in:
Li1304553726 2025-11-20 10:50:31 +08:00
parent 23ff02673e
commit a8034224c5
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export function ImportantNews() {
}));
return(
<div className="relative w-5/6 h-225 mx-auto overflow-hidden ">
<div className="relative w-5/6 h-220 mx-auto overflow-hidden ">
{/* 轮播背景图 - 确保有明确尺寸 */}
<div className="absolute top-0 left-0 w-full h-full">
<CarouselDemo
@ -41,7 +41,7 @@ export function ImportantNews() {
</div>
{/* 固定的烽火要闻 */}
<div className="absolute top-0 right-0 w-1/3 h-225 p-1">
<div className="absolute top-0 right-0 w-1/3 h-220 p-1">
<FireNewsList />
</div>
</div>