【问题标题】:Owl carousel extra space while displaying the actual image size猫头鹰轮播的额外空间,同时显示实际图像大小
【发布时间】:2020-12-05 15:32:27
【问题描述】:

我正在使用现实 wordpress 主题,我正在尝试显示以主题为中心的实际图像

this我已经把css修改成

.iwp-property-gallery-slider-v1 .owl-item figure img {    
        position: relative;
    width: auto;    
    max-width: 800px;
}

这里的图片在项目的每一端都有额外的空白。任何帮助将不胜感激。

【问题讨论】:

标签: html css wordpress image owl-carousel


【解决方案1】:

自动宽度不是你可以用 css 控制的。

你需要在js中用autoWidth:true启用它

检查文档Here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多