table{
table-layout: fixed;
}
为表格设置表格布局算法,给table加上这,一步搞定
①automatic:(默认值)列宽度由单元格内容设定;
②fixed: 列宽由表格宽度和列宽度设定;
③inherit:规定应该从父元素继承table-layout属性的值。
table{
table-layout: fixed;
}
为表格设置表格布局算法,给table加上这,一步搞定
①automatic:(默认值)列宽度由单元格内容设定;
②fixed: 列宽由表格宽度和列宽度设定;
③inherit:规定应该从父元素继承table-layout属性的值。