开发者

overflow: auto; is it supported for <td> of a html table?

开发者 https://www.devze.com 2023-04-08 08:52 出处:网络
There are long texts or string for html tab开发者_开发百科le <td>. Now I want to break the line/texts/string.

There are long texts or string for html tab开发者_开发百科le <td>.

Now I want to break the line/texts/string.

overflow: auto; is it supported for <td> of a html table? I tried it it doesn't work.

How can I solve it ?


add a CSS attribute white-space

white-space:normal;


if your server side language is PHP you can word-wrap your data came from PHP using this function php wordwrap function

0

精彩评论

暂无评论...
验证码 换一张
取 消