在一个table表格中,显示的数据过多时,排版不好看,需显示点点

 1 <html>
 2   <head>
 3      <title>文字隐藏</title>
 4      <style>
 5          .wrap{
 6              border: 1px solid red;
 7              height: 20px;
 8              width: 100px;
 9         
10              white-space: nowrap;
11              text-overflow: elipsis;
12              overflow: hidden;
13          }
14      </style>
15   </head>    
16   <body>
17      <div class="wrap">这里是测试使用的数据呢!</div>
18   </body>
19 </html>

相关文章: