【发布时间】:2020-08-05 01:50:48
【问题描述】:
我有一张这样的卡片:
<Card className="m-5 border-0 shadow" style={styles.card}>
<Row>
<Col>
<Card.Img src={require("../assets/images/findingsPage/EnglishesOfTheWorld.jpg")} style={styles.cardImage} />
</Col>
<Col>
<Card.Body>
<Card.Title as="h1">Englishes of the World</Card.Title>
<Card.Text as="h4" style={styles.cardText}>
How do your grammar intuitions depend on when and where you learned English? Participants took a short grammar quiz, which we are using to understand how grammar differs in different parts of the English-speaking world (USA, Ireland, Australia, etc.). We are also investigating how grammar is different for people who learn English later in life: Do they make different mistakes if their first language is German as opposed to Japanese?
</Card.Text>
</Card.Body>
</Col>
</Row>
</Card>
如果文本长度超出卡片高度,我是否可以折叠部分文本,如下所示:https://mdbootstrap.com/plugins/jquery/extended-cards/
谢谢。
【问题讨论】:
-
应该是可以的。如果您要创建sandbox,我会尽力提供帮助
-
@MoshFeu 这里:codesandbox.io/s/fervent-cray-c3s4t 谢谢!
标签: css reactjs bootstrap-4