添加css代码:
left: 0;display: table;width: 100%;
附带一个超出隐藏:
text-overflow:ellipsis;overflow:hidden;white-space:nowrap;