mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
28 lines
537 B
Markdown
28 lines
537 B
Markdown
# Push && Pull
|
|
See codes to know what happens. Basically it is relative position change.
|
|
```html
|
|
<n-row :gutter="12">
|
|
<n-col :span="6" :push="6">
|
|
<div class="red"></div>
|
|
</n-col>
|
|
<n-col :span="6" :pull="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);
|
|
}
|
|
.green {
|
|
height: 108px;
|
|
background-color: rgba(0, 128, 0, .5);
|
|
}
|
|
``` |