1.单行文本溢出 单行文本隐藏样式使溢出部分使用省略号显示,需要下面3个属性同时设置: overflow: hidden; white-space: nowrap; text-overflow: ellipsis; 完整代码如下: <!DOCTYPE html> <html lang="en