div、span内容超出省略号
span设置部分省略...:
span{
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space:nowrap;
width:240px;
height:24px;
display:block;
}
Div设置部分省略...:
Div{
overflow: hidden;
text-overflow: ellipsis;
white-space:nowrap;
width:240px;
height:24px;
}