码迷,mamicode.com
首页 > Web开发 > 详细

CSS word-wrap强制换行截断长字符串

时间:2014-07-11 19:35:00      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   html   div   htm   

<html>
<head>
<title>CSS截断长字符串,强制换行</title>
</head>
<style>
.wordWrap{word-wrap:break-word; word-break:break-all;}
</style>
<body>
<div class="wordWrap">rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrfffffffffffffffffffffffhhhhhhhhhhhhhhhhhhhhhhhhhjjjjjjjjjjjjjjjjjjjjjjjkkkkkkkkkkkkkkkkkkkkkkkkppppppppppppppppppwwwwwwwwwwwwwwwwwwwwdddddddddd</div>
</body>
</html>

 

CSS word-wrap强制换行截断长字符串,布布扣,bubuko.com

CSS word-wrap强制换行截断长字符串

标签:style   blog   color   html   div   htm   

原文地址:http://www.cnblogs.com/youtianxia/p/3833525.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!