mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 20:58:22 +08:00
16 lines
348 B
Vue
16 lines
348 B
Vue
<template>
|
|
<div class="affix-container">
|
|
<el-affix target=".affix-container" :offset="80">
|
|
<el-button type="primary">Target container</el-button>
|
|
</el-affix>
|
|
</div>
|
|
</template>
|
|
<style scoped>
|
|
.affix-container {
|
|
text-align: center;
|
|
height: 400px;
|
|
border-radius: 4px;
|
|
background: var(--el-color-primary-light-9);
|
|
}
|
|
</style>
|