简体   繁体   English

Zurb基金会模态定位问题

[英]Zurb Foundation Modal Positioning Issue

I am currently working on a website where the reveal modal window when I am at the top of the page works perfectly if I scroll down the page the modal exceeds the window size. 我目前在一个网站上工作,如果我向下滚动页面时,显示模式窗口超出窗口大小,则显示在页面顶部的显示模式窗口将完美运行。 Like so 像这样

在此处输入图片说明

I believe that the modal is determining that since I am scrolled the window? 我相信模式会确定我是否已滚动窗口? size is larger and determines the appropriate position to place the modal which is not in the center of the screen. 尺寸较大,并确定放置模态的适当位置,该模态不在屏幕中央。

The position added to the modal is 添加到模态的位置是

top: 511px;

Is there a way to get around this to prevent it from exceeding the window size? 有没有一种解决方法,以防止它超出窗口大小?

I figured out a way to prevent this from happening by adding 我想出一种方法来防止这种情况的发生,方法是添加

html { 
  overflow: hidden;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM