Carrousel Materialize 不会改变高度,保持默认的 400px。
我希望根据访问该站点的设备,幻灯片的高度比例值会发生变化。
示例计算机,默认高度为 400 像素,移动设备为 200 像素。
站点.css配置
.slider .slides li img {
background-size: 100% auto;
background-repeat: no-repeat;
}
最佳答案
关于css - 如何让 Carousel Materialize 在移动和桌面之间改变高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52464104/