Allow horizontal scrolling on table with bottom visible at all times

 ̄綄美尐妖づ 提交于 2019-12-04 05:51:05

问题


I'd like to add a horizontal scroll to a bootstrap page. Currently the way it is set up is to have the user scroll all the way to the bottom of the page the page and then use the horizontal scroll. I'd like to have it set up so the scroll is always visible. I have recreated the issue in jsfiddle.

Js-Fiddle

<table class="table">

回答1:


If you still want it to be like this but this is not hte proper thing to do in bootstrap add the following css property

.container{
    overflow:scroll;
    position:absolute;
}

https://jsfiddle.net/Siddharth_Pandey/5usukas1/




回答2:


You are using table-responsive that's why the scroll is moving to the bottom of the page just remove the responsive from all thought your design will change little bit but you can set it with css jsfiddle.net/Siddharth_Pandey/5usukas1



来源:https://stackoverflow.com/questions/31009880/allow-horizontal-scrolling-on-table-with-bottom-visible-at-all-times

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!