some environment, css text-overflow: ellipsis dot not work, or not satisfied
maybe you can try this lirbray
do text-overflow: ellipsis in js
this lirbray is base in jquery
str: The string to append to the content before it is clipped. Defaults to the ellipsis character "…". May also contain HTML, but the string itself is not subject to being clipped