diff --git a/bi/base.css b/bi/base.css index 1e6e4b8f4c..8428d80588 100644 --- a/bi/base.css +++ b/bi/base.css @@ -866,6 +866,13 @@ li.CodeMirror-hint-active { border: none; color: #e85050 !important; } +.bi-label { + text-overflow: ellipsis; + overflow-x: hidden; + overflow-y: hidden; + white-space: nowrap; + word-break: break-all; +} /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-text { @@ -881,6 +888,7 @@ li.CodeMirror-hint-active { /*IE8*/ box-sizing: border-box; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ + word-wrap: break-word; word-break: break-word; } .bi-bubble { diff --git a/dist/base.css b/dist/base.css index 1e6e4b8f4c..8428d80588 100644 --- a/dist/base.css +++ b/dist/base.css @@ -866,6 +866,13 @@ li.CodeMirror-hint-active { border: none; color: #e85050 !important; } +.bi-label { + text-overflow: ellipsis; + overflow-x: hidden; + overflow-y: hidden; + white-space: nowrap; + word-break: break-all; +} /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-text { @@ -881,6 +888,7 @@ li.CodeMirror-hint-active { /*IE8*/ box-sizing: border-box; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ + word-wrap: break-word; word-break: break-word; } .bi-bubble { diff --git a/dist/bundle.css b/dist/bundle.css index 29483fb23c..e110b84c28 100644 --- a/dist/bundle.css +++ b/dist/bundle.css @@ -2387,6 +2387,13 @@ li.CodeMirror-hint-active { border: none; color: #e85050 !important; } +.bi-label { + text-overflow: ellipsis; + overflow-x: hidden; + overflow-y: hidden; + white-space: nowrap; + word-break: break-all; +} /****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/ .bi-text { @@ -2402,6 +2409,7 @@ li.CodeMirror-hint-active { /*IE8*/ box-sizing: border-box; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ + word-wrap: break-word; word-break: break-word; } .bi-bubble { diff --git a/src/css/base/single/label.css b/src/css/base/single/label.css new file mode 100644 index 0000000000..bbe9bfebe4 --- /dev/null +++ b/src/css/base/single/label.css @@ -0,0 +1,7 @@ +.bi-label { + text-overflow: ellipsis; + overflow-x: hidden; + overflow-y: hidden; + white-space: nowrap; + word-break: break-all; +} diff --git a/src/css/base/single/text.css b/src/css/base/single/text.css index b8bc83e730..f4b27f3cdc 100644 --- a/src/css/base/single/text.css +++ b/src/css/base/single/text.css @@ -11,5 +11,6 @@ /*IE8*/ box-sizing: border-box; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ + word-wrap: break-word; word-break: break-word; } diff --git a/src/less/base/single/label.less b/src/less/base/single/label.less new file mode 100644 index 0000000000..1b56752475 --- /dev/null +++ b/src/less/base/single/label.less @@ -0,0 +1,6 @@ +@import "../../bibase"; + +.bi-label { + .overflow-dot(); + word-break: break-all; +} \ No newline at end of file diff --git a/src/less/base/single/text.less b/src/less/base/single/text.less index fa6594810b..2174e27568 100644 --- a/src/less/base/single/text.less +++ b/src/less/base/single/text.less @@ -3,5 +3,6 @@ .bi-text { .overflow-dot(); .box-sizing(border-box); + word-wrap: break-word; word-break: break-word; } \ No newline at end of file