【发布时间】:2018-01-21 05:50:02
【问题描述】:
这里是网站:http://sdgsdgsdgsdg.atwebpages.com/
在任何规模的桌面浏览器上都可以根据需要工作。如果在横向模式下,也可以在移动设备上使用。
但是,在我的 iPhone SE 上使用纵向模式时,第一个轮播图像在 Chrome 中偏离中心。
这是截图:
我尝试将text-align:center 的样式添加到轮播中该特定图像的 div 中,但没有成功。
编辑:正如先前的答案应该解决它的建议,我在答案中使用了添加到我的 css 中的代码: .carousel-inner > .item > img { 边距:0 自动; }
还是不行。
有什么想法吗?
【问题讨论】:
-
Bootstrap Carousel image doesn't align properly 的可能重复项。请参阅@atrepp 的回答。
-
@Alexander 没有修复它。
标签: jquery html css iphone twitter-bootstrap