element-ui中table固定列后阴影出不来
时间: 2023-11-09 21:00:13 浏览: 306
您可以尝试增加CSS属性 `z-index` 来解决这个问题,例如:
```
.el-table__fixed-header {
z-index: 1;
}
```
如果您的表格还有其他固定列,您也需要设置它们的 `z-index` 属性。
另外,如果您的表格使用了 `el-scrollbar__wrap` 这个元素,请确保为它设置了 `z-index` 属性。
相关问题
element-ui2.13.2升级到element-ui 2.15.6的差异
升级 Element UI 版本时,需要注意以下几点:
1. 语法变化
在 Element UI 2.15.6 中,某些语法有所变化,需要进行调整。例如,原来使用 `$attrs` 访问组件的非 prop 特性,现在应改用 `$attrs` 对象的 `inheritAttrs` 选项。另外,某些组件的 prop 名称也有所变化,需要注意。
2. 样式变化
Element UI 2.15.6 中有些组件的样式有所调整,例如 `el-table` 的表头排序箭头、`el-select` 的下拉框阴影等。如果你的项目中使用了这些组件,需要根据新的样式进行调整。
3. 功能变化
Element UI 2.15.6 中新增了一些功能,例如 `el-upload` 组件支持多文件上传、`el-date-picker` 组件新增了时间范围选择等。如果你的项目中使用了这些组件,可以考虑使用新功能来改进你的项目。
总的来说,Element UI 2.15.6 相对于 2.13.2 来说,变化不是非常大,但还是需要仔细查看官方文档,逐一检查你的项目是否需要进行调整。
el-table鼠标悬浮阴影错位
el-table 是 Element UI 提供的一个表格组件,它支持很多功能,包括排序、筛选、分页等。关于鼠标悬浮阴影错位的问题,可能是由于 el-table 中的 CSS 样式不正确导致的。建议您检查一下以下方面:
1. 检查是否使用了正确的版本的 Element UI,确保使用的是最新版本。
2. 检查 CSS 样式是否覆盖了 el-table 的默认样式,如果有覆盖,可能会导致样式错位。
3. 检查是否有其他组件或者自定义样式与 el-table 冲突,也可能导致样式错位。
如果以上方法都无法解决问题,建议您提供更详细的问题描述或者代码,以便更好地帮助您解决问题。
阅读全文
相关推荐















