Owl 轮播额外 space 同时显示实际图像大小
Owl carousel extra space while displaying the actual image size
我正在使用 reality wordpress 主题,我正在尝试显示以主题为中心的实际图像
你看this我把css改成了
.iwp-property-gallery-slider-v1 .owl-item figure img {
position: relative;
width: auto;
max-width: 800px;
}
这里的图片在项目的每一端都带有额外的白色 space。任何帮助将不胜感激。
自动宽度不是您可以使用 css 控制的东西。
您需要在 js 中使用 autoWidth:true
启用它
检查文档Here
我正在使用 reality wordpress 主题,我正在尝试显示以主题为中心的实际图像
你看this我把css改成了
.iwp-property-gallery-slider-v1 .owl-item figure img {
position: relative;
width: auto;
max-width: 800px;
}
这里的图片在项目的每一端都带有额外的白色 space。任何帮助将不胜感激。
自动宽度不是您可以使用 css 控制的东西。
您需要在 js 中使用 autoWidth:true
检查文档Here