Css技巧 1、一行文字自适应屏幕(不折行,隐藏多余文字,显示省略号) white-space: nowrap; text-overflow: ellipsis; overflow: hidden; 以上三个样式同时使用。