标签:utf-8 lang type 博客 padding add lan nowrap pac
源博客地址:http://blog.csdn.net/u011456552/article/details/53839255
效果图:
源码:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Szy1000</title> <style> body{ background-color: #ccc; } td{ padding: 0 10px; width: 40px; height: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } </style> </head> <body> <table style="border-collapse:collapse;table-layout:fixed;" width="50%" border="1"> <tbody> <tr> <th width="80px">编号</th> <th>内容</th> </tr> <tr> <td width="80px">12123121231</td> <td>12456</td> </tr> </tbody> </table> </body> </html>
标签:utf-8 lang type 博客 padding add lan nowrap pac
原文地址:http://www.cnblogs.com/GIScore/p/7273050.html