table 随着内容自动适应宽度

td { white-space: nowrap; }

 

给td加个属性就可以了,如果有th则可以 td,th

 

本文来自:https://blog.csdn.net/liuhongwei_study/article/details/41682479

做个记录,留以备用。

posted @ 2019-11-29 11:08  #飞鸟爱青鱼  阅读(6556)  评论(1)    收藏  举报