CSS实现连续字符换行的方法

2024-01-18 14:18 小编

连续字符的CSS换行,主要用到CSS的word-break属性,为其添加:break-all参数,这样的话字符会适应规定的宽度而自动换行,实际上这就是CSS的强制换行功能。
 

复制代码
代码如下:
<title>连续字符的CSS换行代码</title>
<table width="120" border="2">
<tr><td style="word-break:break-all">ddddddddddddddddddddddddddddddddddddrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrvvvvvvvvvvvvvvvvvvvvvvvvvvvxxxxxxxxxxxxxxxxxxxxxxxxxxhhhhhhhhhhhhhhhhhhhhhhnnnnnnnnnnnnnnnnnnnnnnnn</td></tr></table>


在线咨询 拨打电话

电话

13363039260

内部绝密传真282期

微信二维码