span 超出部分用…显示,鼠标移上去时悬浮显示 超出部分用…显示就是设置下面的几个样式。 悬浮显示,是把title设置成要显示的内容,就可鼠标悬浮显示 <span title=“span显示的内容” style={{ whiteSpace: “nowrap”, textOverflow: “ellipsis”,overflow: “hidden”,display: “block” }}>span显示的内容 span添加title属性就可以实现鼠标悬浮效果,不用单独设置样式;