如您在演示中所看到的,如果用户名太长,我想执行“ ...”。但是,即使我将固定宽度设置为<p>
,也无法使用。
.userDetailWrap p{
float:left;
margin:0px;
clear:both;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
将固定宽度设置为p
正常。您还应该考虑跨浏览器的做法。
width:80px;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
检查这个出来。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句