diff --git a/components/table/demo/fixed-columns-header.md b/components/table/demo/fixed-columns-header.md index 6496a2ceaa..0bb86c0ab8 100644 --- a/components/table/demo/fixed-columns-header.md +++ b/components/table/demo/fixed-columns-header.md @@ -11,9 +11,9 @@ title: > 若列头与内容不对齐,请指定列的宽度 `width`。 -> 建议指定 `scroll.x` 为固定宽度。注意,非固定列宽度之和不要超过 `scroll.x`。 +> 建议指定 `scroll.x` 为大于表格宽度的固定值。注意,且非固定列宽度之和不要超过 `scroll.x`。 -> 如果希望 `scroll.x` 为自适应内容宽度,可以指定 `scroll={{ x: true }}`,然后设置单元格内容的 `white-space: nowrap` 样式强制不自动换行。 +> 如果希望 `scroll.x` 为自适应内容宽度,可以指定 `scroll={{ x: true }}`。注意不要设置滚动区域单元格内容的宽度,并指定 `white-space: nowrap` 样式强制其不自动换行。 ## en-US @@ -21,9 +21,9 @@ A Solution for displaying large amounts of data with long columns. > Specify the width of columns if header and cell do not align properly. -> A fixed width for `scroll.x` is recommended. The sum of unfixed columns should not greater than `scroll.x`. +> A fixed value which is greater than table width for `scroll.x` is recommended. The sum of unfixed columns should not greater than `scroll.x`. -> If you hope the `scroll.x` will adapt content's witdh, you can set `scroll={{ x: true }}` ant then use css `white-space: nowrap` to make sure table cell will not be wrapped. +> If you hope the `scroll.x` will adapt content's witdh, you can set `scroll={{ x: true }}`. Then use css `white-space: nowrap` to make sure the content of table cell inside scrollable area will not be wrapped. ````jsx import { Table } from 'antd'; diff --git a/components/table/demo/fixed-columns.md b/components/table/demo/fixed-columns.md index 45f6d635cc..18097a8dd6 100644 --- a/components/table/demo/fixed-columns.md +++ b/components/table/demo/fixed-columns.md @@ -11,9 +11,9 @@ title: > 若列头与内容不对齐,请指定列的宽度 `width`。 -> 建议指定 `scroll.x` 为固定宽度。注意,非固定列宽度之和不要超过 `scroll.x`。 +> 建议指定 `scroll.x` 为大于表格宽度的固定值。注意,且非固定列宽度之和不要超过 `scroll.x`。 -> 如果希望 `scroll.x` 为自适应内容宽度,可以指定 `scroll={{ x: true }}`,然后设置单元格内容的 `white-space: nowrap` 样式强制不自动换行。 +> 如果希望 `scroll.x` 为自适应内容宽度,可以指定 `scroll={{ x: true }}`。注意不要设置滚动区域单元格内容的宽度,并指定 `white-space: nowrap` 样式强制其不自动换行。 ## en-US @@ -21,9 +21,9 @@ To fix some columns and scroll inside other columns, and you must set `scoll.x` > Specify the width of columns if header and cell do not align properly. -> A fixed width for `scroll.x` is recommended. The sum of unfixed columns should not greater than `scroll.x`. +> A fixed value which is greater than table width for `scroll.x` is recommended. The sum of unfixed columns should not greater than `scroll.x`. -> If you hope the `scroll.x` will adapt content's witdh, you can set `scroll={{ x: true }}` ant then use css `white-space: nowrap` to make sure table cell will not be wrapped. +> If you hope the `scroll.x` will adapt content's witdh, you can set `scroll={{ x: true }}`. Then use css `white-space: nowrap` to make sure the content of table cell inside scrollable area will not be wrapped. ````jsx import { Table } from 'antd';