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
Table of contents 1. Content Overview 2. Concepts...
Table of contents Preface Introduction Live Easy ...
Below are some common parameters of /etc/my.cnf o...
Open any web page: for example, http://www.baidu....
Use HTML to create complex tables. Complex tables...
Nginx: PV, UV, independent IP Everyone who makes ...
The meaning of key_len In MySQL, you can use expl...
1. How to display the date on the right in the art...
Nested use of MySQL ifnull I searched online to s...
HTML meta viewport attribute description What is ...
Table of contents 1. Location / Matching 2. Locat...
This article uses examples to describe the common...
mysql basic data types Overview of common MySQL d...
Using CSS layout to create web pages that comply w...
Without further ado, let’s get started with resou...