如何给table增加左右滚动条,滚动时列对不齐的问题

给table增加左右滚动条,列对不齐,怎么弄

当前用户 应用程序 SQL执行时间 SQL
JSWX004gtrhjydddddddddddddddddddddd JDBC 2019-04-19 sel
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
JSWX004 JDBC 2019-04-19 select * from community t where t.id=1
            css样式:
              .tb2 tbody {
        display: block;
        height: 232px;
        overflow-y: scroll;
    }

    .tb2 thead{
        display: table;
        width: 100%;
    }
    .tb2 tbody tr {
        display: table;
        width: 100%;
    }
查看全部
fayingtong
fayingtong
2019/04/24 10:00
  • css
  • html5
  • bootstrap
  • javascript
  • jquery
  • 点赞
  • 收藏
  • 回答
    私信

1个回复