美文网首页
elementplus el-menu-item 调整高度鼠标p

elementplus el-menu-item 调整高度鼠标p

作者: 南土酱 | 来源:发表于2023-11-13 10:00 被阅读0次
<style lang="scss" scoped>
  .el-menu-item {
    height: 35px;
  }
}
image.png

鼠标还没移上去就已经出现hover的样式

因此对其加上 overflow 就行

<style lang="scss" scoped>
  .el-menu-item {
    height: 35px;
    overflow: hidden;
  }
}
1699927149647.png

相关文章

网友评论

      本文标题:elementplus el-menu-item 调整高度鼠标p

      本文链接:https://www.haomeiwen.com/subject/hqtdwdtx.html