Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我更改页面的高度以显示垂直滚动条时,页面上的 div 元素会伸出,页面底部会出现一个空白块。当前站点在这里:
http://cliqups.herokuapp.com/
我应该怎么做才能停止调整 div 的大小?我应该完全禁用垂直滚动条吗?
为了后代,我添加了一些屏幕截图。
没有滚动条:
带滚动条:
这是您在 /assets/application-67b0f50f40b31242c0515ffd40544866.css 文件中的罪魁祸首,@media-queries css 在特定的屏幕高度启动。
@media screen and (max-height: 855px) div#wrapper div.container div.sign-up { margin-top: 271px; }
找到这条线并取出 margin-top: 271px; 你应该会看到多余的间距消失了。您无需禁用滚动条。我希望这有帮助。