当然要提前设置好table的width值,然后再写这个,使得每列宽度都相等。 <style> table { table-layout: fixed; } </style> 转载于:https://www.cnblogs.com/iCheny/p/8798804.html