标签:css title rap bsp color span pac 滚动 class
<html> <head> <title>table新增水平滚动条</title> <style type="text/css"> .tableWrap { overflow: auto; } table{ width: 100% } table th{ white-space: nowrap; } table td{ white-space: nowrap; } </style> </head> <body> <div class="tableWrap"> <table> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> <tr><td>2222</td><tr> </table> </div> </body> </html>
标签:css title rap bsp color span pac 滚动 class
原文地址:https://www.cnblogs.com/Harold-Hua/p/11804143.html