实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style> 
5
p.test1
6
{
7
width:11em; 
8
border:1px solid #000000;
9
text-wrap:none;
10
}
11
12
p.test2
13
{
14
width:11em; 
15
border:1px solid #000000;
16
text-wrap:normal;
17
}
18
</style>
19
</head>
20
<body>
21
22
<p class="test1"> This paragraph contains some text. This line should not breake or wrap to the next line.</p>
23
<p class="test2"> This paragraph contains some text: The line breaks as normal.</p>
24
25
<p><b>Note:</b> None of the major browsers support the text-wrap property.</p>
26
27
</body>
28
</html>
29