允许在桌子上水平滚动并始终可见底部 [英] Allow horizontal scrolling on table with bottom visible at all times

查看:70
本文介绍了允许在桌子上水平滚动并始终可见底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向引导页面添加水平滚动.当前,它的设置方式是让用户一直滚动到页面底部,然后使用水平滚动.我想要设置它,以便滚动条始终可见.我已经在jsfiddle中重新创建了这个问题.

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.

<table class="table">

推荐答案

如果您仍然希望它像这样,但是在引导程序中不适合这样做,请添加以下css属性

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/

这篇关于允许在桌子上水平滚动并始终可见底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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