<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我有一个在大屏幕上完美运行的旋转木马 slider 。但是当在小型设备上查看时,会添加额外的灰色背景空间。同样可以在这个SITE LINK的firefox中(ctrl+shift+m)查看.在 Firebug 中查看时,我注意到这可能是由于
element.style {
height:345.6px
}
如果我删除高度,它会完美地工作。如何解决这个问题?
更新:如果没有出现 slider ,请选择将城市更改为Guwahati
最佳答案
我需要更多信息来帮助您。你在使用某种模板吗?您可以访问原始 HTML 或 CSS 吗?请更清楚地说明我们如何提供帮助。
编辑: 没错,这应该是一个评论。对于那个很抱歉。给元素一个特定的类并覆盖模板 CSS。是这样的: HTML:
<section id="home" class="customHeightStyle home-section home-parallax home-fade bg-dark-30" data-background="" style="height: 480.24px; top: 0px; background-position: 82px 38px, 44px 31px, 22px 15px;">
CSS:
.customHeightStyle {
height: auto !important;
}
关于css - 在小型设备中查看时显示额外空间的旋转木马 slider ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31260359/