可通过CSS,控制标题长度超出后的显示样式:
- overflow:hidden;表示溢出隐藏
- text-overflow:ellipsis;表示超出后显示...
- white-space: nowrap;表示不换行
.title {
width: 280px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
可通过CSS,控制标题长度超出后的显示样式:
.title {
width: 280px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
最新回复