在此 Bootstrap 3.0 (WIP) 页面上向下滚动到“启动演示模式”。
http://bs3.codersgrid.com/javascript/#modals
请注意出现第二个垂直滚动条。为什么?
最佳答案
由于 CSS 样式被应用于元素:
.modal {
bottom: 0;
display: none;
left: 0;
overflow-x: auto;
overflow-y: scroll; /* <--- this guy right here */
position: fixed;
right: 0;
top: 0;
z-index: 1040;
}
将溢出属性显式设置为
scroll
无论是否溢出,都会导致浏览器显示滚动条。
关于twitter-bootstrap - 为什么这个 Bootstrap 3.0 模态演示中会出现第二个垂直滚动条?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17666543/