修复Table 带边框相关的样式问题 (#3340)

close #3301
This commit is contained in:
ddcat1115 2016-10-10 22:38:15 +08:00 committed by 偏右
parent 8bf99b7773
commit c6e1d6febc

View File

@ -120,7 +120,6 @@
&-header { &-header {
background: @table-head-background-color; background: @table-head-background-color;
overflow: hidden; overflow: hidden;
border-radius: @border-radius-base @border-radius-base 0 0;
} }
&-header table { &-header table {
@ -232,21 +231,28 @@
} }
&-bordered { &-bordered {
.@{table-prefix-cls}-body > table { .@{table-prefix-cls}-header > table,
.@{table-prefix-cls}-body > table,
.@{table-prefix-cls}-fixed-left table,
.@{table-prefix-cls}-fixed-right table {
border: 1px solid @border-color-split; border: 1px solid @border-color-split;
} }
&.@{table-prefix-cls}-fixed-header { &.@{table-prefix-cls}-fixed-header {
border: 1px solid @border-color-split; .@{table-prefix-cls}-header > table {
table { border-bottom: 0;
border: 0;
} }
.@{table-prefix-cls}-fixed-left {
border-right: 1px solid @border-color-split; .@{table-prefix-cls}-body > table {
border-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
} }
.@{table-prefix-cls}-fixed-right {
border-left: 1px solid @border-color-split; .@{table-prefix-cls}-body-inner > table {
border-top: 0;
} }
.@{table-prefix-cls}-placeholder { .@{table-prefix-cls}-placeholder {
border-bottom: 0; border-bottom: 0;
} }