diff --git a/src/styles/components/tooltip.less b/src/styles/components/tooltip.less index 35501df2..d42e54fa 100644 --- a/src/styles/components/tooltip.less +++ b/src/styles/components/tooltip.less @@ -76,6 +76,9 @@ &-with-width{ white-space: pre-wrap; text-align: justify; + // 解决纯字母或数字不换行的问题 + word-wrap: break-word; + word-break: break-all; } } @@ -107,4 +110,4 @@ border-width: @tooltip-arrow-outer-width-light; } } -} \ No newline at end of file +}