分类
WEB++技术

white-space pre-wrap

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style type="text/css">
*{padding:0;margin:0;}
div{width:200px;}
p{
word-wrap:break-word;
white-space:pre-wrap;
 
}
</style>
</head>
 
<body>
<div>
<p>testtesttesttesttesttesttesttesttesttesttesttestt  esttesttestte3123123123123123123123123123123123123123</p>
<p>testtesttesttesttesttesttesttesttesttesttesttesttesttest123123123123123123123123123123123123123123123123123123123123</p>
<p>testtesttesttesttesttesttesttesttesttesttesttesttestt  esttesttesttesttest1231231231223123123123123123</p>
</div>
</body>
</html>

unicac

...long long ago,he have a dream.

发表评论

邮箱地址不会被公开。 必填项已用*标注