html - 垂直居中的元素,上面有最小边距/填充?

标签 html css

我在页面上有一个垂直居中的幻灯片,但是我想以某种方式添加一个“限制”,即它在较小的屏幕上向上滑动页面的高度。

http://www.visioncreativegroup.com.au/demos/bps/index.php/production/theatre

如果您调整窗口大小,它将到达幻灯片位于导航栏和主 Logo 顶部的位置。基本上,一旦屏幕尺寸达到足够小,它就需要停在这些元素的底部。

这可能吗?

最佳答案

.production-scroll 类中移除 position: absolute;

如果不需要,也从 #sticky-footer 中删除 position: fixed;

关于html - 垂直居中的元素,上面有最小边距/填充?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12104193/

相关文章:

javascript - 修改对象后如何更新html中的数据?

html - 创建一个以 SVG 建模的元素

html - 这个导航颜色是从哪里来的?

javascript - 使用 css 将 div 移动到新位置然后停在那里

CSS3 : Will mobile devices load background images when inside media queries?

html - 自定义滚动条但一直消失的效果

html - 自定义配置文件颜色

jquery - 防止 pseudo::before 元素中的动画背景图像被裁剪

html - '位置: absolute' responds to entire page rather than parent element

jquery - Bootstrap Accordion 嵌套网格