当前位置:   article > 正文

elementUi重置Select选择器样式、option、deep、vue3、plus_elementui选择器

elementui选择器


前言

样式标签属性为<style scoped lang="scss"></style>


select选框样式(element-plus)

// 设置选择框的背景样式
::v-deep .el-input__wrapper {
    background: transparent;
    box-shadow: 0 0 0 0 transparent;
    font-size: 20px;
}

// 设置选择框的鼠标经过样式
::v-deep .el-input__wrapper:hover {
    box-shadow: 0 0 0 0 transparent !important;
}

// 设置选择框的宽
::v-deep .el-input__inner {
    width: 136px;
}

// 设置选择框聚焦时的边框样式
::v-deep .el-select .el-input.is-focus .el-input__wrapper {
    box-shadow: 0 0 0 0 transparent !important;
}

// 设置选择框赋值后的边框样式
::v-deep .el-select .el-input__wrapper.is-focus {
    box-shadow: 0 0 0 0 transparent !important;
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

option选项面板样式(element-plus)

.el-select-dropdown__item {
    width: 286px;
}
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号