eg:html代码 添加的css样式 +title
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#test{
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: inline-block;
width: 100px;
font-style: normal;
}
</style>
<meta charset="UTF-8">
</head>
<body>
<div title="对新版有任何意见或建议,请前往专区进行反馈" id="test">对新版有任何意见或建议,请前往专区进行反馈</div>
</body>
</html>
效果如下图↓
![](https://i-blog.csdnimg.cn/blog_migrate/c74f70ca3553d87baa408411b79e56cf.png)