Fluid table: Truncate cell contents when needed, otherwise keep the table as narrow as possible
问题 I have an HTML 5 table with three rows and four columns (two attribute/value pairs per row) on a responsive page (Bootstrap). In desktop view (or with little content), I would like the table not to fill the entire width available, just enough to show the data. Columns should have individual widths, just enough to show their content. In other words, I want white space to the right of the table, when possible. In mobile view (or with lots of content), I would like the cell contents to truncate