mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
28 lines
571 B
Markdown
28 lines
571 B
Markdown
# 推 & 拉
|
|
看看代码就明白这个怎么用了,基本来说就是相对位置的改变。
|
|
```html
|
|
<n-row :gutter="12">
|
|
<n-col :span="6" :push="6">
|
|
<div class="light-green"></div>
|
|
</n-col>
|
|
<n-col :span="6" :pull="6">
|
|
<div class="green"></div>
|
|
</n-col>
|
|
<n-col :span="6">
|
|
<div class="light-green"></div>
|
|
</n-col>
|
|
<n-col :span="6">
|
|
<div class="green"></div>
|
|
</n-col>
|
|
</n-row>
|
|
```
|
|
```css
|
|
.light-green {
|
|
height: 108px;
|
|
background-color: rgba(0, 128, 0, .12);
|
|
}
|
|
.green {
|
|
height: 108px;
|
|
background-color: rgba(0, 128, 0, .24);
|
|
}
|
|
``` |