我正在使用响应式轮播,它呈现出奇怪的效果
render() {
return (
<div className="slider-container">
<Carousel className="carousel-style" showArrows={true} showThumbs={false} showStatus={false}>
{this.generateCards()}
<div className="slider-item-div">
Test
</div>
</Carousel>
</div>
);
}
这是CSS
.slider-container {
width: 100%;
height: 100%;
}
.slider-item-div {
padding: 20px;
background-color: white;
text-align: center;
height: 100%;
width: 100%;
}
.carousel-style {
height: 100% !important;
}
不幸的是,这就是它所呈现的
我想要高度 == 100% 并填满屏幕。我也希望显示左右箭头而不像这里一样悬停在它们上面: http ://react-responsive-carousel.js.org/#demos