如何使a标签内只显示固定的字数,未显示的字用....表示 a { display: block; 60px; //宽度根据你要显示的字数来定white-space: nowrap;overflow: hidden;text-overflow: ellipsis; }