您的位置:首页 > Web前端 > CSS

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

2014-07-09 14:21 585 查看
<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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: