mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
32 lines
741 B
Markdown
32 lines
741 B
Markdown
|
## zh-CN
|
||
|
|
||
|
使用 Space.Compact 让表单组件之间紧凑连接且合并边框。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
Compact Mode for form component.
|
||
|
|
||
|
```css
|
||
|
.site-space-compact-wrapper .site-input-split {
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
|
||
|
.site-space-compact-wrapper .site-input-right:not(.ant-input-rtl) {
|
||
|
border-left-width: 0;
|
||
|
}
|
||
|
|
||
|
.site-space-compact-wrapper .site-input-right:not(.ant-input-rtl):hover,
|
||
|
.site-space-compact-wrapper .site-input-right:not(.ant-input-rtl):focus {
|
||
|
border-left-width: 1px;
|
||
|
}
|
||
|
|
||
|
.site-space-compact-wrapper .site-input-right.ant-input-rtl {
|
||
|
border-right-width: 0;
|
||
|
}
|
||
|
|
||
|
.site-space-compact-wrapper .site-input-right.ant-input-rtl:hover,
|
||
|
.site-space-compact-wrapper .site-input-right.ant-input-rtl:focus {
|
||
|
border-right-width: 1px;
|
||
|
}
|
||
|
```
|