【发布时间】:2019-04-06 10:16:43
【问题描述】:
我想按每行第 3 列对卡片帖子进行排序。但是当我在 style={{""} 中输入代码时不起作用。
然后,我使用Ant-Design。请帮助我该如何解决这个问题?
props.list.map(result => (
<div key={result.id}>
<Row className="gutter-example" gutter={16}>
<Col className="gutter-row" span={6}>
<Card hoverable style={{ width: 200 }} cover={ result.volumeInfo.imageLinks ? <img alt="BookCover" src={result.volumeInfo.imageLinks.thumbnail} />:
<img alt="Alternative_Cover" src={AlterNative} />
}
>
<Meta title={result.volumeInfo.title} description={ <a href={result.volumeInfo.infoLink}>
{result.volumeInfo.infoLink}
</a>
}
/>
</Card>
</Col>
</Row>
</div>
【问题讨论】:
-
这里有点猜想。问题是Card.Add Card到Col,span不起作用。
-
哈哈感谢您的意见,但它有效;;