Element el-tabs样式修改 修改element样式

起因

有的时候,为了系统美观,需要修改element组件样式;

用element系统的正常样式是这个样子的

 

修改完样式是这个样子的(虽然丑了点,不过凑合看吧)

做法

新写一个style,里面都是用来写element样式的(比如之前已经有style了,也不要在里面写element样式,容易没有写完看不到修改的element效果)

下面是我设置的样式代码,大家根据自己的需要自己改,so easy!

<style>
.el-tabs--border-card .el-tabs__content {
  padding: 20px 0;
  background-color: #0c1831;
  height: 650px;
}
.el-form-item__label {
  text-align: right;
  vertical-align: middle;
  float: left;
  font-size: 14px;
  color: #fff;
  line-height: 40px;
  padding: 0 12px 0 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.el-form-item--medium .el-form-item__label {
  line-height: 36px;
  margin-left: 20px;
}
.el-input.is-disabled .el-input__inner {
  background-color: #f5f7fa;
  border-color: #dfe4ed;
  color: #0c1831;
  cursor: not-allowed;
}
.el-select .el-input.is-disabled .el-input__inner {
  width: 625px;
}
.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
  border-color: #0c1831;
}
.el-tabs--border-card .el-tabs__header {
  background-color: #0c1831;
  padding: 0 20px;
  margin-top: 20px;
}
.el-tabs--border-card .el-tabs__header {
  background-color: #0c1831;
  padding: 0 20px;
}
.el-tabs--border-card .el-tabs__header .el-tabs__item {
  color: #fff;
  margin-top: 0;
}
</style>

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值