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 Recently, a Java EE web project that has ...
I upgraded my Raspberry Pi server to Ubuntu 20 tw...
Table of contents Let's talk about flattening...
1. Package the Java project into a jar package He...
I collected a lot of them, but all ended in failu...
Today's campus recruitment written test requi...
Preface You should often see this kind of special...
Preface What is the role of an agent? - Multiple ...
You may have noticed that the src or CSS backgroun...
answer from stackflow: Simply <br> is suffic...
Table of contents 1. Realistic Background 2. Agre...
This article uses an example to describe the mana...
Preface In practice, we may encounter such a prob...
Table of contents 1. Create a new project 2. Add ...
Why do we need virtual dom? Virtual DOM is design...