美文网首页
scoped导致自定义element, iview 组件样式失效

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

作者: 爱笑的小白菜 | 来源:发表于2018-10-26 11:41 被阅读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>

相关文章

网友评论

      本文标题:scoped导致自定义element, iview 组件样式失效

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