/*设置滚动属性*/tbody { display: block; max-height: 400px; overflow-y: scroll;}/*设置头与内容自动对齐*/table thead,tfoot,tbody tr { display: table; 100%; table-layout: fixed;}/*给滚动条预留宽度*/table thead,tfoot { calc( 100% - 1em); background: #EFF0F5;}