Eri*_*ric 11 modal-dialog twitter-bootstrap
在此Bootstrap 3.0(WIP)页面上向下滚动一下"Launch Demo Modal".
http://bs3.codersgrid.com/javascript/#modals
请注意,出现第二个垂直滚动条.为什么?
Bri*_*ian 14
由于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;
}
Run Code Online (Sandbox Code Playgroud)
显式设置溢出属性scroll将导致浏览器显示滚动条是否存在溢出.
| 归档时间: |
|
| 查看次数: |
12539 次 |
| 最近记录: |