在 Vue 中使用 el-col 组件固定位置并且最前显示,你可以使用 CSS 的 position:fixed
属性和 z-index
属性来实现。
示例代码如下:
<template>
<div>
<el-col :span="4" class="fixed-col">固定的列</el-col>
</div>
</template>
<style>
在 Vue 中使用 el-col 组件固定位置并且最前显示,你可以使用 CSS 的 position:fixed
属性和 z-index
属性来实现。
示例代码如下:
<template>
<div>
<el-col :span="4" class="fixed-col">固定的列</el-col>
</div>
</template>
<style>