//供自己参考 <style> .hello{ width:450px; } .substr{ white-space:nowrap; overflow:hidden; text-overflow: ellipsis;} </style>