<!DOCTYPE html>charset="utf-8"W3Cschool教程(w3cschool.cn)p.test1{width:11em;border:1px solid #000000;text-wrap:none;}p.test2{width:11em;border:1px solid #000000;text-wrap:normal;}class="test1" This paragraph contains some text. This line should not breake or wrap to the next line.class="test2" This paragraph contains some text: The line breaks as normal.