语义用户界面模态拉伸窗口高度 [英] semantic-ui modal stretching window height

查看:113
本文介绍了语义用户界面模态拉伸窗口高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此页面上看到: http://semantic-ui.com/modules /modal.html#/examples

为避免这种情况,您可以简单地将'long'类添加到模式中.我这样做了,但它仍在拉伸窗口高度.有谁知道为什么会这样,或者我该如何调试这种行为?我希望能够滚动我的模态,而又不会拉伸窗口高度.

That to avoid this you can simple add the 'long' class to the modal. I did this but it still is stretching the window height. Does anyone have any ideas why this would be, or how I can debug this behavior? I want to be able to scroll my modal, without having it stretch the window height.

推荐答案

对于以后遇到此问题的任何人,我最终使用的解决方法只是添加以下CSS规则:

For anyone who runs into this in the future, the workaround that I ended up using was just to add this css rule:

body{ max-height: 100vh; }

这篇关于语义用户界面模态拉伸窗口高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆