Bootstrap:如何禁用垂直滚动条? [英] Bootstrap : how to disable vertical scrollbar?

查看:1171
本文介绍了Bootstrap:如何禁用垂直滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的模式弹出窗口打开时,它会在浏览器窗口的右侧添加一个垂直滚动条。我如何禁用此功能?我认为这是启用时,模式窗口有一个非常大的高度值需要滚动。我想禁用这个,因为我的表单高度不超过窗口高度。

when my modal popup window opens, it adds a vertical scrollbar to the right of the browser window. How do i disable this? I think this is enabled when the modal window has a very large height value where it needs to scroll. i want to disable this as my form height does not exceed the window height.

推荐答案

在你的css中添加:

body {
  overflow-y:hidden;
}

这篇关于Bootstrap:如何禁用垂直滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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