查漏补缺——说说text-overflow: ellipsis;
问题
如题所示
答案
相关源码:
.hzh-entry-title {
font-size: 21px;
font-weight: 600;
line-height: 50px;
margin: 0 0 0 17%;
position: relative;
z-index: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 70%;
color: #737373;
}
CSS3属性之text-overflow:ellipsis详解
综上所述,text-overflow: ellipsis;
这个样式的意思是对溢出的文件使用省略号进行显示。