text-overflow :ellipsis; //让截断的文字显示为点点。还有一个值是clip意思是截断不显示点点 white-space : nowrap; //让文字不换行 overflow : hidden; //超出要隐藏