【发布时间】:2020-06-10 06:31:43
【问题描述】:
我对 React.js 很陌生,如果我有一组图像,连续 3 张卡片,卡片上显示三行,每行之间有空格。 我想知道如何使用以下卡片引导代码遍历图像,
function App() {
return (
<Card style={ { width: "18rem" } }>
<Card.Img variant="top" src="holder.js/100px180" />
<Card.Body>
<Card.Title>Card Title</Card.Title>
<Card.Text>
Some quick example text to build on the card
title and make up the bulk of
the card 's content.
</Card.Text>
</Card.Body>
</Card>
);
}
【问题讨论】:
标签: javascript html arrays reactjs react-bootstrap