开发者

Long String enter by user

if any user enter long string e.g aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa开发者_StackOverflow中文版aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa it destroy the layout of the page. is there any solution which dont destroy our PHP page and string also not cut?


In your css you can use an attribute for style as word-wrap:break-word;. This will wrap or break the long word into the boundaries of your control width.

Beware this is supported only by IE, Safari and FF3.1 and above. Other browsers not sure.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜