![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
<div style={{ flex: '1.3', marginRight: '10px', position: 'relative', height: '230px', }} > <Image layout="fill" objectFit="cover" height="230" src="/avatar1.png" alt="" /> </div>
父元素:position: 'relative',
Image组件:layout="fill" objectFit="cover"
效果图
![](https://img2023.cnblogs.com/blog/1283878/202212/1283878-20221223145606774-811722910.png)