更新时间:2022-11-16 17:21:39
使用CSS3 文本溢出
.
Use CSS3 text-overflow
.
CSS:
#txt{
position:relative;
padding:7px;
text-align:justify;
background:#e7e7e7;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
工作于:(最新版本)