【发布时间】:2023-01-29 20:10:14
【问题描述】:
我想在不提及高度的情况下为所有网格提供相同的行线。所以,我使用了 align-item-stretch 但箭头按钮没有调整。
如何将箭头对齐到相同的高度?
<div
className="m-2 p-0 shadow-lg rounded-2 pe-auto border border-primary"
style={{ width: "100%", maxWidth: "200px" }}
key={data.key}
>
<a href="/">
<div className="p-2 d-flex flex-xl-column align-items-center align-items-xl-start">
<img
className="mr-1"
style={{ height: 50, width: 50 }}
src={data.img}
alt=""
/>
<div>
<h3 className="wow fadeInUp">{data.name}</h3>
<p className="fs-6 mt-2">{data.describe}</p>
</div>
</div>
<div className="d-flex justify-content-end">
<img
style={{width: 30,height: 30,objectFit: "contain",borderBottomRightRadius: 8}}
src={require("./components/Images/arrow-right.png")}
alt=""
/>
</div>
</a>
</div>
到底怎么调arrow,这个我要搞清楚。
【问题讨论】:
-
我不太清楚你想做什么。你想让箭头对齐在相同的高度吗?例如,在 Account / Account-test / ABC-test3 块的中间?
-
是的,我想将箭头对齐到相同的高度
标签: javascript reactjs bootstrap-5