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.
精彩评论