scoped导致自定义element, iview 组件样式失效

2018-10-26  本文已影响0人  爱笑的小白菜

再写一个不带scoped   的<style ></style>  标签来放自定义的组件样式就行啦

<style >

.el-input--prefix .el-input__inner{

    height: 30px;

  }

  .el-input__icon{

    line-height: 30px;

  }

  .el-input--suffix .el-input__inner {

    height: 30px;

  }

.el-year-table td .cell:hover, .el-year-table td.current:not(.disabled) .cell {

    color: #2C7BCD;

    font-weight: 350;

}

.el-select-dropdown__item.selected{

color: #2C7BCD;

    font-weight: 350;

}

</style>

上一篇 下一篇

猜你喜欢

热点阅读