1.可以设置style中的“table-layout”为“fixed” 和“word-break”为“break-all”
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest |
2.如果要求不要换行,则只能隐藏一部分内容了,设置table的style中的“table-layout”为“fixed” 并设置td的style为“text-overflow”为“ellipsis”和“ overflow”为“hidden”
TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest |