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

<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强制换行截断长字符串

上一篇:web html 防盗链


下一篇:JS 黑客帝国文字下落效果