naive-ui/demo/documentation/components/grid/enUS/basic.md

27 lines
436 B
Markdown
Raw Normal View History

2019-10-28 18:29:52 +08:00
# Basic
```html
<n-row :gutter="12">
<n-col :span="6">
<div class="red"></div>
</n-col>
<n-col :span="6">
<div class="green"></div>
</n-col>
<n-col :span="6">
<div class="red"></div>
</n-col>
<n-col :span="6">
<div class="green"></div>
</n-col>
</n-row>
```
```css
.red {
height: 108px;
background-color: rgba(128, 0, 0, .5);
2019-10-28 18:29:52 +08:00
}
.green {
height: 108px;
background-color: rgba(0, 128, 0, .5);
2019-10-28 18:29:52 +08:00
}
```