猫头鹰轮播显示额外的空间,同时显示实际图像尺寸

问题描述

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

this,我已经将css修改

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

此处的图像在项目的每个末端都带有额外的空白。任何帮助将不胜感激。

enter image description here

解决方法

自动宽度不是您可以通过CSS来控制的。

您需要使用this.dialog.open(ConfirmComponent,{ width: '350px',data: { title: "Confirmation message",message: "Do you accept these terms and conditions?",},});

在js中启用它

检查文档Here