编辑下面的代码:【加编码】
<html> <head> <style> p.test { width:11em; border:1px solid #000000; word-wrap:break-word; } </style> </head> <body> <p class="test"> This paragraph contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂