body { margin: 0; padding: 0; height: 99%; } .layout { display: flex; align-items: center; justify-content: center; } #main-box { width: 100%; height: 100%; background-color: #fff; border-radius: 5px; } #basic-box { width: 100%; } .title { width: 100%; height: 30px; justify-content: start; padding: 0 0 0 20px; box-sizing: border-box; } .title p { font-size: 14px; font-weight: bold; } .classTable { width: 98%; margin: 0 1% 0 1%; table-layout: fixed; text-align: center; border-collapse: collapse; border-spacing: 1px; box-sizing: border-box; } .classTable tr td, .classTable tr th { height: 50px; box-sizing: border-box; border: 1px solid #ddd; padding: 10px; text-align: left; } .classTable tr:nth-child(odd) { background-color: #f2f2f2; } .layui-tab-brief>.layui-tab-title .layui-this { color: #409eff; } .layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after { border-bottom: 2px solid #409eff; } a { color: #428bca; text-decoration: none; } a:hover, a:focus { color: #2a6496; text-decoration: underline; } #layui-tab-brief { border: 1px solid #f2f2f2; border-radius: 5px; background-color: #ffffff; overflow-x: auto; /* 启用横向滚动 */ white-space: nowrap; /* 不换行 */ } .layui-tab-brief { padding: 0 10px; background-color: #fff; border-radius: 5px; }