1、超出层的高度和宽度时文本自动隐藏
overflow:hidden;text-overflow:ellipsis;
2、超出层的宽度时隐藏溢出的文本以...表示,Firefox不兼容,只隐藏溢出的文本
white-space: nowrap;text-overflow:ellipsis; overflow:hidden;
程序员的基础教程:菜鸟程序员