gpt4 book ai didi

html - react 引导 : Carousel carousel indicator

转载 作者:行者123 更新时间:2023-11-28 03:51:49 27 4
gpt4 key购买 nike

我使用 React Bootstrap 轮播。指示器按钮未正确对齐,尺寸也不对。有办法解决这个问题吗?

http://imgur.com/a/lhxMS

<Grid>
<Row >
<Col md={6} md={12}>
<Carousel>
<Carousel.Item>
<img src="https://docs.google.com/uc?id=0B0huBtqYaof7c0dpVFdGbGl0MWs"/>

</Carousel.Item>
<Carousel.Item>
<img src="https://docs.google.com/uc?id=0B0huBtqYaof7MVAySV9jME9TWWM"/>

</Carousel.Item>
<Carousel.Item >
<img src="https://docs.google.com/uc?id=0B0huBtqYaof7N250S3JicmxxNmM"/>

</Carousel.Item>
<Carousel.Item >
<img src="https://docs.google.com/uc?id=0B0huBtqYaof7MDF5Vm1VYWhoY3M"/>

</Carousel.Item>
<Carousel.Item >
<img src="https://docs.google.com/uc?id=0B0huBtqYaof7X1ROMUxRMjVsN00"/>

</Carousel.Item>
</Carousel>
</Col>
</Row>
</Grid>

最佳答案

您需要将图片高度设置为轮播的高度:

<Carousel>
<Carousel.Item>
<img width={900} height={500} alt="900x500" src="/assets/carousel.png"/>
</Carousel.Item>
</Carousel>

关于html - react 引导 : Carousel carousel indicator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43690500/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com