duangu1878 2012-07-10 10:00
浏览 38
已采纳

如何使用Javascript或jQuery在表中添加Horizo​​ntal scrolling属性

I am doing a site in PHP, I have to display the data in table, I can't display whole data on that table since the table is large and my div is so small, so I decided to add a scroller in left side and right side of table. I have added the image of table. How can I scroll the table using Javascript or jQuery?

enter image description here

Any help will be appreciated.

  • 写回答

3条回答 默认 最新

  • dongyao5843 2012-07-10 10:16
    关注

    I guess you could use the scroll in css like this:

    overflow-x: scroll;
    

    Check here for a demo

    Or you could use the Tiny Scrollbar Plugin in Jquery.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置