* { padding:0; margin:0; } .box1 { width:260px; height:160px; overflow:auto; margin:100px auto; } table { border-collapse:collapse; border-spacing:0; text-align:center; } th,td { width:80px; height:50px; border:1px solid #ccc; border-collapse:collapse; } .top { position:absolute; width:243px; overflow:hidden; background:#fff; z-index:10000; } .left { position:absolute; height:143px; overflow:hidden; background:#fff; z-index:9999; } .topleft { position:absolute; overflow:hidden; background:#fff; z-index:10001; width:82px; height:52px; border:none; } #tab { -width:100%; -height:100%; width:400px; }
是最简单的东西,看待代码 你可以从中受到启发,然后修改成自己想要的东西