在對應(yīng)的標(biāo)簽上添加css樣式
overflow:hidden; //超出一行文字自動隱藏
text-overflow:ellipsis; //文字隱藏后添加省略號
white-space:nowrap; //強(qiáng)制不換行
在對應(yīng)的標(biāo)簽上添加css樣式
overflow:hidden; //超出一行文字自動隱藏
text-overflow:ellipsis; //文字隱藏后添加省略號
white-space:nowrap; //強(qiáng)制不換行