Html code table {table-layout: fixed;} td {white-space: nowrap; overflow: hidden; text-overflow: ellipsis;} principle: this method is used to solve the problem of appearance when the table cell content is too large, mainly involving four CSS styles: 1. table-layout: fixed because the default value of table-layout is auto, that is, the width and height of a table depend on the quantity of its content. If the volume of the content cannot be estimated, therefore, the final form of the table cannot be guaranteed, and fixed is enough. (Note: This style is critical) 2. white-space: nowrap is used to ensure that no line breaks are automatically generated regardless of the number of text content in the cell (TD). In this case, the excess content will break through the cell horizontally. 3. overflow: Hide the part beyond the cell. 4. text-overflow: ellipsis replaces the hidden part with a ellipsis.: Source code: Html code <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Strict // EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd "> <Html xmlns =" http://www.w3.org/1999/xhtml "> <Head> <style type =" text/css "> table {table-layout: fixed; width: 100% ;}td {white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-color: # ccc ;} </style>