table-layout:fixed table-layout: fixed; 在table上设置上面属性后,如果不设置td的宽度,那么所有td的宽度平分总table宽度。如果设置了td的宽度,则以设置的宽度为准。 table-layout: auto; // 此为默认值