【发布时间】:2016-12-19 10:17:43
【问题描述】:
我实际上是在尝试这样做: Table with table-layout: fixed; and how to make one column wider
例如有一个自动调整大小的列宽表格,其中表格是由 div 而不是表格 tds 等构建的,但第一列是固定宽度,其余列均匀分布以填充 100%。
有点像这样:
.intra {
display: table;
table-layout: fixed;
width: 100%;
}
.tit {
width: 90px;
}
.hover {
display: table-cell;
width: auto;
}
除非你可以看到这不起作用:
感谢您提供的任何帮助。
【问题讨论】:
-
乍一看你的小提琴,似乎你需要
display: table在你的.maketable班级,display: table-row在你的.intra班级,和display: table-cell在你的.tit班级? -
错字提示:它是一个列——不是“列”..
标签: html css responsive-design