轮播图图片自适应
This commit is contained in:
parent
23ff02673e
commit
a8034224c5
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue