2015-10-05 70 views
0

我正在尝试使网页移动响应,但在较小屏幕上的flexslider中的图像歪斜。无论是加载还是缩小,右侧的图像都会侵犯当前图像。Flexslider图像在较小的屏幕上重叠

我会发布图片,但我需要更多的声望点。

我想弄清楚如何推动正在查看的当前图像,以便下一张图像的边缘不会过早显示。

+0

向我们展示你的代码;) – Buzinas

+0

有问题的CSS仅仅是这样的: .flexslider { .slides:第一胎IMG { 身高:自动; } .flex-control-thumbs {margin:margin_top:20px; li游标:指针; } } .flex-direction-nav { display:none; } } – ConorJohn

+0

JavaScript只是调用flexslider并让它滚动通过 – ConorJohn

回答

0

只需添加媒体查询即可在特定点处应用余裕。只是找不到目标了一小会儿的规则:

.slides:first-child img{ 
    height: auto; 

} 

//fixes the bug where the second image appears on the right on smaller screens 
@media (max-width: 991px){ 
    .slides:first-child img{ 
    margin-left: 40px; 
    } 
} 

.flex-control-thumbs{ 
    margin-top: 20px; 
    li{ 
     cursor: pointer; 
     list-style-type: none; 
    } 
}