2016-12-25 21:09:49 +08:00
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
可以简单配置几种等分栅格和间距。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
A simple playground for column count and gutter.
|
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```css
|
2024-07-23 22:22:24 +08:00
|
|
|
#grid-demo-playground [class~='ant-col'] {
|
2016-12-25 21:09:49 +08:00
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
}
|
2024-07-23 22:22:24 +08:00
|
|
|
#grid-demo-playground [class~='ant-col'] > div {
|
2016-12-25 21:09:49 +08:00
|
|
|
height: 120px;
|
2020-02-26 21:00:43 +08:00
|
|
|
font-size: 14px;
|
2016-12-25 21:09:49 +08:00
|
|
|
line-height: 120px;
|
2020-02-26 21:00:43 +08:00
|
|
|
background: #0092ff;
|
|
|
|
border-radius: 4px;
|
2016-12-25 21:09:49 +08:00
|
|
|
}
|
2024-07-23 22:22:24 +08:00
|
|
|
#grid-demo-playground pre {
|
2020-02-26 21:00:43 +08:00
|
|
|
padding: 8px 16px;
|
2024-04-15 10:27:51 +08:00
|
|
|
font-size: 14px;
|
2016-12-25 21:31:33 +08:00
|
|
|
background: #f9f9f9;
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
2024-07-23 22:22:24 +08:00
|
|
|
#grid-demo-playground pre.demo-code {
|
2020-04-27 21:40:52 +08:00
|
|
|
direction: ltr;
|
|
|
|
}
|
2024-07-23 22:22:24 +08:00
|
|
|
#grid-demo-playground .ant-col {
|
2021-01-27 14:03:05 +08:00
|
|
|
padding: 0;
|
|
|
|
}
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|