Set the table's style="table-layout:fixed;" and then set the td's style="word-wrap:break-word;" Copy code The code is as follows:<table style="TABLE-LAYOUT: fixed" border="1" cellspacing="0" cellpadding="0" width="200"> <tbody> <tr> <td style="WORD-WRAP: break-word" width="20">sssssssssssssssssssssssssssssssssssssssssssssssssssssssss </td> <td>aaaaa</td> </tr> <tr> <td style="WORD-WRAP: break-word" width="20">sssssssssssssssssssssssssssssssssssssssssssssssssssssssss </td> <td>aaaaa</td> </tr> </tbody> </table> |
<<: Drop-down menu and sliding menu design examples
>>: CSS style solves the problem of displaying ellipsis when the text is too long
Preface Learn MySQL to reorganize previous non-MK...
The meta tag is used to define file information an...
Table of contents Audio transcoding tools princip...
At present, most people who use Linux either use ...
This article lists some tips and codes about form...
Table of contents 1. Switch between production en...
The first step is to create a mysql container doc...
Table of contents Preface 1. Understanding with e...
Preface Reduce is one of the new conventional arr...
background PNG images take up more storage space ...
Table of contents What is a skeleton screen How t...
What is an index? An index is a data structure th...
User namespace is a new namespace added in Linux ...
Table of contents What is nodejs Install NodeJS H...
Table of contents 1. Spark vs. Hadoop 1.1 Disadva...