将主滑块图像与中心对齐 [英] Align Main Slider image to center

查看:32
本文介绍了将主滑块图像与中心对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个小项目,遇到一个小问题,我不知道如何解决.我有一个包含许多图像的图像库,但我希望活动图像居中,而不改变分辨率或宽/高比.该问题的链接

解决方案

尝试添加:

.flex-active-slide {文本对齐:居中;}

I'm working on a small project, and have one little problem that I don't know how to resolve myself. I have an image gallery with many images, but I want the active image to be centered, without changing the resolution or width/height ratio. Link for the issue here. Login is user / password. I tried to manipulate with this CSS:

.img {
    margin-left: 200px;
}

However, it seems to ruin the bottom slider. What should I do to center the main image without changing the image ratio? This example image shows what I want to do.

解决方案

Try adding:

.flex-active-slide {
  text-align: center;
}

这篇关于将主滑块图像与中心对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆