/* 居中目录 */ .toc { margin: auto; } /*宽屏目录分栏*/ @media screen and (min-width:1092px) { .toc ul { column-count: 4; column-width: 21em; } .toc ul > li > ul { column-count: 1; } .toctoggle { float: right; } } /*中等屏目录分栏*/ @media screen and (max-width:1092px) { .toc ul { column-count: 2; } .toc ul > li > ul { column-count: 1; } .toctoggle { float: right; } } /*移动端隐藏三级目录*/ @media screen and (max-width:782px) { .toc ul { column-count: 1; } .toc ul > li > ul { column-count: 1; } .toctoggle { float: right; } li.toclevel-3{ display:none; } }