<style type="text/css">
.text{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width:200px;
}
</style>
<body>
截取字符串省略号截取字符串省略号截取字符串省略号截取字符串省略号