给p标签做单行省略 设置宽度的问题 p{ 100px; min-100%; overflow: hidden; text-overflow:ellipsis; white-space: nowrap; } width需要配合min-width使用